summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-05-11 14:08:14 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-05-11 14:08:14 +0000
commitf6ec51f74c8ac3114d6ab404cd0d7ce83d50adc9 (patch)
tree18863e2a1c31485f08ee30a422fb01ce18d80a81 /sv.c
parenta6c403648ecd5cc72235fdb1e7535523a8ff2ac9 (diff)
downloadperl-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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sv.c b/sv.c
index 87c3755d41..d616b8e42d 100644
--- a/sv.c
+++ b/sv.c
@@ -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,