# New Ticket Created by Elizabeth Mattijsen # Please include the string: [perl #122667] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=122667 >
[14:22:01] <lizmat> m: my $a = do { return 42 } [14:22:02] <+camelia> rakudo-moar 5f9cd5: ( no output ) [14:22:34] <lizmat> $ MVM_SPESH_DISABLE=1 perl6 -e 'my $a = do { return 42 }' [14:22:34] <lizmat> Segmentation fault: 11 [14:22:41] <lizmat> segfaults locally for me [14:22:54] <lizmat> can someone confirm ? [14:23:29] <colomon> seems to throw me in the REPL?!? [14:23:41] <colomon> lizmat: ^^ [14:23:57] <colomon> ah, no, I see [14:24:04] <colomon> seg fault on OS X [14:24:14] <colomon> and linux [14:24:27] <lizmat> also in the REPL [14:25:25] <colomon> lizmat: wasn't actually the REPL, I missed the closing quote in my copy-n-paste so the shell wanted more input. [14:25:51] <lizmat> actually, I can golf it down to just { return } [14:26:01] <lizmat> $ MVM_SPESH_DISABLE=1 perl6 -e '{ return }' [14:26:01] <lizmat> Segmentation fault: 11 [14:26:24] <lizmat> hmmm... actually just return is enough [14:27:04] lizmat rakudobugs [14:27:18] <colomon> lizmat: confirmed for just { return }, too [14:27:32] <lizmat> $ perl6-p -e 'return' [14:27:32] <lizmat> Attempt to return outside of any Routine [14:27:39] <lizmat> is what it probably should be