This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Move bareword checking from the peephole optimizer to finalize_optree. Fixes [perl...
authorGerard Goossen <gerard@ggoossen.net>
Tue, 9 Aug 2011 18:35:06 +0000 (20:35 +0200)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 11 Aug 2011 16:07:14 +0000 (09:07 -0700)
commiteb796c7f1a47acbd996034731639c1bb76e31a19
treece561de43080ad2dc8c9a59d417dbd873faf1b80
parent86a64801a038eae8c8c1c6f0ba6a8b40aeb8fa8d
Move bareword checking from the peephole optimizer to finalize_optree. Fixes [perl #95998]

The bareword checking is moved from the peephole optimizer to finalize_optree.
newRANGE needs additional bareword checking because the constants may
be optimized away by 'gen_constant_list'.
The OPpCONST_STRICT flag is removed after giving an error about a
bareword to prevent giving multiple errors about the same bareword.
embed.fnc
op.c
proto.h
t/lib/strict/subs
t/op/sigdispatch.t