# New Ticket Created by  Zev Benjamin 
# Please include the string:  [perl #50554]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=50554 >


I unfortunately can't reduce this to a more self-contained test-case
right now.  I add the following function to one of the files in
languages/perl6/src/builtins:

.sub blah
    $I0 = 1
    .return ($I0)
.end

I then recompiled perl6.  The following works fine:

$ ./perl6
> my $a = blah(); say $a;
1

However, omitting the final semicolon causes a segfault:
$ ./perl6
> my $a = blah(); say $a
Segmentation fault (core dumped)

Additionally, omitting the "()" after "blah" stops the segfault from
occurring.  Strangely, specifying --target=pir seems to indicate that
all three variations produce identical pir.


Zev

Reply via email to