# New Ticket Created by # Please include the string: [perl #125772] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=125772 >
This code was copied from perl5's Carp module and crudely translated - read: hacksaw, blowtorch and hammer applied until code compiled. I know what it used to do in perl5, what it gets up to in perl6 is anyone's guess, but it appears to be *bad*. I'm not sure that it *should* compile in Perl6, but it certainly shouldn't cause the compiler to bail. And yes, I'm running on latest moarVM. I'm certain that Perl6 classes and namespaces now work in an entirely different fashion. I was just copying over Carp.pm to get its interface to a new directory, and ran across this particular gem. --cut here-- sub _fetch_sub { %::{'$pack'}; } --cut here-- I should note in passing that it's the compile stage that's tripping up, as there's nothing that invokes _fetch_sub() in the script. The error suggests that the MoarVM compiler is walking off the end of an array somewhere. --cut here-- ===SORRY!=== MVMArray: Index out of bounds --cut here--