This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #47047] Fix erroneous AUTOLOAD warning
authorFather Chrysostomos <sprout@cpan.org>
Mon, 5 Sep 2016 16:31:31 +0000 (09:31 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 5 Sep 2016 16:32:39 +0000 (09:32 -0700)
commit1de22db27a9aaa5fec9e9b93ec06a1d6c6f05c31
tree8751b5eda7613a527e53a1749688c114eb20981c
parent9493dad184630fd01d49f6b613821550566a587c
[perl #47047] Fix erroneous AUTOLOAD warning

If there was a stub present in the package into which the invocant had
been blessed, then AUTOLOADing via a *method* call would warn with â€˜Use
of inherited AUTOLOAD for non-method’ even if it is a method.

A recent commit stopped OPf_REF from being set on OP_ENTERSUB, so this
commit uses that flag to indicate a method call, to allow a fast run-
time check to see whether to pass the method flag to gv_autoload.
op.c
pp_hot.c