diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-05-11 14:08:14 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-05-11 14:08:14 +0000 |
commit | f6ec51f74c8ac3114d6ab404cd0d7ce83d50adc9 (patch) | |
tree | 18863e2a1c31485f08ee30a422fb01ce18d80a81 /sv.c | |
parent | a6c403648ecd5cc72235fdb1e7535523a8ff2ac9 (diff) | |
download | perl-f6ec51f74c8ac3114d6ab404cd0d7ce83d50adc9.tar.gz |
avoid creating spurious subroutine stubs on failed subroutine
call and other places of sv_2cv() misuse; fixes problems with
failed subroutine calls "hiding" later attempts to lookup methods
in base classes
p4raw-id: //depot/perl@3388
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -4214,6 +4214,9 @@ sv_2cv(SV *sv, HV **st, GV **gvp, I32 lref) ENTER; tmpsv = NEWSV(704,0); gv_efullname3(tmpsv, gv, Nullch); + /* XXX this is probably not what they think they're getting. + * It has the same effect as "sub name;", i.e. just a forward + * declaration! */ newSUB(start_subparse(FALSE, 0), newSVOP(OP_CONST, 0, tmpsv), Nullop, |