This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
report the index for not found hash/array index lookups in report_uninit()
authorTony Cook <tony@develop-help.com>
Mon, 1 Jun 2020 06:11:50 +0000 (16:11 +1000)
committerKarl Williamson <khw@cpan.org>
Thu, 30 Jul 2020 21:55:49 +0000 (15:55 -0600)
commit64ca16b7283dbcc61008c2e621f51f18eb4b5bbb
tree660974c58f1e986b334f6c469bec6ff6df166b61
parentd2540b73dec94453f8b162cb43f54cab16d6ea27
report the index for not found hash/array index lookups in report_uninit()

where the index is a non-magical, non-reference variable.

This only works where the op is converted to OP_MULTIDEREF, but that
should be happening for the simple cases this handles.

An alternative would be to report the index variable name rather than
the index, but that seems less useful to me.
sv.c
t/lib/warnings/sv