Same code involving Tuple
upcast produces different results in release mode
#13411
Labels
Tuple
upcast produces different results in release mode
#13411
The following:
prints
0
in non-release builds and1
in release builds. A higher-level reproduction is:Here the type of the
#chain
'ed iterator's#next
features a similarTuple
upcast.It is broken since Crystal 1.6.2, which is also the version that switched from LLVM 10 to 13. I suspect the difference in behavior is a consequence of reaching an
unreachable
instruction, but so far I have no clue why LLVM thinks that it is possible.The text was updated successfully, but these errors were encountered: