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

Re: [perl #129068] SV *Perl_cv_const_sv_or_av(const CV *const):Assertion `((svtype)((cv)->sv_flags & 0xff)) == SVt_PVCV ||((svtype)((cv)->sv_flags & 0xff)) == SVt_PVFM' failed (op.c:7926)

Thread Previous
From:
Zefram
Date:
March 29, 2017 20:33
Subject:
Re: [perl #129068] SV *Perl_cv_const_sv_or_av(const CV *const):Assertion `((svtype)((cv)->sv_flags & 0xff)) == SVt_PVCV ||((svtype)((cv)->sv_flags & 0xff)) == SVt_PVFM' failed (op.c:7926)
Message ID:
20170329203321.GO6453@fysh.org
Dave Mitchell wrote:
>Is there any reason we couldn't just add a check to Perl_localize,
>Perl_my_attrs (ant maybe a few other places), which gives a deprecation
>warning if o isn't of one or two simple forms (like
>list/pushmark/(pad[sah]v x n) ?

That's effectively what we've already got.  It's an error rather
than a warning, and the check is in S_my_kid() which is called
from Perl_my_attrs().  This ticket is concerned with items that have
problematic effects when lexed in a "my" list but duck this semantic check
(by causing a parse error or by not leaving any evidence in the optree).

-zefram

Thread Previous


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