This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make constant sub redef warnings obey scope
authorFather Chrysostomos <sprout@cpan.org>
Mon, 21 Nov 2011 21:02:47 +0000 (13:02 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 21 Nov 2011 21:02:47 +0000 (13:02 -0800)
commitefcf35c4ce9be7ae046664523cf99dac85257e4a
tree18f909afe9e245232f87255669fc76a8314c9af7
parentf965e9d4a373e14022c83f58715a948ea40a9b4a
Make constant sub redef warnings obey scope

In perldiag, this is listed as (S), which means that outside of any
use/no warnings scope it always warns, regardless of $^W.

But this warning was ignoring use/no warnings, too.

There were actually tests for this oddity, but I think those were
added by mistake, or this was just not thought through.  I cannot see
how this is not a bug.
op.c
sv.c
t/lib/warnings/op