This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Include negative index of array in warnings about an unitialized value wen constant...
authorGerard Goossen <gerard@ggoossen.net>
Sat, 3 Sep 2011 10:28:45 +0000 (12:28 +0200)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 4 Sep 2011 18:31:03 +0000 (11:31 -0700)
commite6c60e7001deecc8d42edb12b568bc8b6463aa58
treeed1701a361370a70d55b3aca3a63a03c65efc452
parent4a5b30f7b37f28a7e1816e4c669498c5adb5a3e5
Include negative index of array in warnings about an unitialized value wen constant folding isn't done.

When constant folding isn't done OP_NEGATE isn't merged with
a constant, and the index isn't detected when warning about
unintialized values. This patch adds special handling for OP_NEGATE to
the index detection.
sv.c