Skip to content

Ensure all constants only have one initializer in the interpreter#14381

Merged
straight-shoota merged 1 commit intocrystal-lang:masterfrom
HertzDevil:bug/interpreter-const-index
Mar 24, 2024
Merged

Ensure all constants only have one initializer in the interpreter#14381
straight-shoota merged 1 commit intocrystal-lang:masterfrom
HertzDevil:bug/interpreter-const-index

Conversation

@HertzDevil
Copy link
Contributor

Fixes #13739.

Ideally there should only ever be a single CompiledDef here even if the same constant initializer is compiled multiple times.

@HertzDevil HertzDevil added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler:interpreter labels Mar 21, 2024
@straight-shoota straight-shoota added this to the 1.12.0 milestone Mar 21, 2024
@straight-shoota straight-shoota merged commit 7c119d1 into crystal-lang:master Mar 24, 2024
@HertzDevil HertzDevil deleted the bug/interpreter-const-index branch March 26, 2024 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler:interpreter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid memory access using the interpreter in file_spec

2 participants