This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix crash in leave_scope when my sub has CvGV
authorFather Chrysostomos <sprout@cpan.org>
Thu, 28 Aug 2014 14:24:53 +0000 (07:24 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 28 Aug 2014 14:24:53 +0000 (07:24 -0700)
commitdb5cc3ee5bdb14c8d59302b6c3ef8ff4bca660bb
treefbe560399f3aa944f0d3891c47ce1144ced910b7
parent56117e3ef4ef2c7986c400f86f321f22f261571a
Fix crash in leave_scope when my sub has CvGV

Sub declaration can reuse an existing stub.  So it is possible to define
a package sub using a stub that was originally lexical.  Hence,
leave_scope needs to take into account that a my-sub may not have a
name hek any more.
gv.c
scope.c
t/op/lexsub.t