develooper Front page | perl.perl5.porters | Postings from January 2017

Re: [perl #129869] Perl_sv_setsv_flags: Assertion`((svtype)((_gvgp)->sv_flags & 0xff)) == SVt_PVGV ||((svtype)((_gvgp)->sv_flags & 0xff)) == SVt_PVLV' failed (sv.c:4569)

Thread Previous | Thread Next
From:
Zefram
Date:
January 22, 2017 04:18
Subject:
Re: [perl #129869] Perl_sv_setsv_flags: Assertion`((svtype)((_gvgp)->sv_flags & 0xff)) == SVt_PVGV ||((svtype)((_gvgp)->sv_flags & 0xff)) == SVt_PVLV' failed (sv.c:4569)
Message ID:
20170122041825.GA10369@fysh.org
Brian Carpenter wrote:
>./perl -e '%::=0;@0=*0=*::::=::'

Reduces to '%::=();*z=::'.  The assertion comes from glob assignment code,
where the coercion of the rhs to a GV surprisingly returns an undef.

-zefram

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About