Now resolved in r16509. Kudos to Jonathan for implementing RT#40806, which enabled the #line <nnn> "file" directive needed for this to work.
TGE now reports errors relative to the original .tg file. Thus error:imcc:The opcode 'say_ic' (say<1>) was not found. Check the type and number of the arguments in file 'src/PASTGrammar.tg' line 124 instead of error:imcc:The opcode 'say_ic' (say<1>) was not found. Check the type and number of the arguments in file 'src/PASTGrammar_gen.pir' line 152 I'll note that the line number reported is off-by-one from where it actually occurs in the file, but that's because Parrot reports PIR errors as off-by-one, not because of this patch. (When Parrot reports the correct line number, this will work here also.) Marking this ticket as "resolved". Pm