# New Ticket Created by chromatic # Please include the string: [perl #41771] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=41771 >
This code causes a segfault: .sub test :main get_results '(0)' .end >From my reading of src/ops/core.ops, this is invalid syntax. From my reading of IMCC's parser, there's no easy way to catch this. A correct invocation is more likely: .sub test :main get_results '(0)', P1 # or get_results '()' .end It's possible to add a null guard in compilers/imcc/pbc.c:1120, but I think that's the wrong fix; the parser should warn on the error here. -- c