p4raw-id: //depot/perl@30996
while (items--) {
SV* const basename_sv = *svp++;
HV* basestash = gv_stashsv(basename_sv, 0);
- if (!basestash) {
+ if (!basestash || (HvMROMETA(basestash)->fake && !HvFILL(basestash))) {
if (ckWARN(WARN_SYNTAX))
Perl_warner(aTHX_ packWARN(WARN_SYNTAX),
"Can't locate package %"SVf" for the parents of %s",