petdance/scratch — Issue #299: Line numbers in a particular IMCC stack trace are all wrong
Author: petdance
Created: 2011-11-01 04:25:36+00:00
State: open

To reproduce:

please check out commit 93b60203b806a0303f8f7981469102ea90ce5b54 of Rakudo, configure rakudo with r46819 of parrot, and then run 'make'

{{{
$ make
...
/home/moritz/rakudo/parrot_install/bin/parrot -o src/gen/perl6.pbc src/Perl6/Compiler.pir
error:imcc:syntax error, unexpected DOT, expecting $end ('.')
in file 'src/builtins/EnumMap.pir' line 92
included from 'src/gen/builtins.pir' line 92
included from 'src/Perl6/Compiler.pir' line 1
error:imcc:syntax error ... somewhere
in file 'src/builtins/EnumMap.pir' line 92
included from 'src/gen/builtins.pir' line 92
included from 'src/Perl6/Compiler.pir' line 1
make: *** [src/gen/perl6.pbc] Error 1
}}}

Files EnumMap.pir and bulitins.pir are 36 and 59 lines long, respectively, and line 1 in src/Perl6/Compiler.pir is a comment. So all these line numbers in the backtrace have no obvious connection to reality