On Thu Aug 02 08:42:40 2012, gfldex wrote:
> ... a undefined default value of a class that does a role.
> 
> role R {
>          our $.r; # this is required
> #       my $.r; # this would trigger the bug too
> }
> 
> class C does R {
>          our $.c = LolImUndefined;
> }

Nice find.

We can even make this a bit shorter:

<masak> nr: role R { our $.r }; class C does R {}; say "alive"
<p6eval> rakudo d71ad1: OUTPUT«(signal SEGV)»
<p6eval> ..niecza v19-15-g051783d: OUTPUT«alive␤»
* masak adds this to https://rt.perl.org/rt3/Ticket/Display.html?
id=114380

Reply via email to