Compiler stack-overflows on a combination of recursive const
definitions
#6540
Labels
bug
Something isn't working
compiler: frontend
Everything to do with type checking, control flow analysis, and everything between parsing and IRgen
compiler
General compiler. Should eventually become more specific as the issue is triaged
The below example will result in the following stack-overflow:
Note that the example contains two recursive
const
definitions,MOD_FN
andS_ASSOC/MOD_CONST
:The overflow happens only if both definitions are present. E.g., if we have only:
the compiler will emit errors.
Errors will be emitted also in this case:
The overflow happens only when both recursive definitions are present.
When fixing this issue, enable and adjust the
recursive_const_stack_overflow
test which is linked to this issue via GitHub link in the test TODO.The text was updated successfully, but these errors were encountered: