[patch] ithreads + refto bug
Doug MacEachern [Wed, 1 Aug 2001 09:47:28 +0000 (02:47 -0700)]
Message-ID: <Pine.LNX.4.21.0108010937240.7498-100000@mako.covalent.net>

(Test in change #11539)

p4raw-link: @11539 (not found)

p4raw-id: //depot/perl@11536

pp.c

diff --git a/pp.c b/pp.c
index 658a890..b6c11da 100644 (file)
--- a/pp.c
+++ b/pp.c
@@ -467,7 +467,7 @@ S_refto(pTHX_ SV *sv)
        SvTEMP_off(sv);
        (void)SvREFCNT_inc(sv);
     }
-    else if (SvPADTMP(sv))
+    else if (SvPADTMP(sv) && !(isGV(sv) && GvIN_PAD(sv)))
        sv = newSVsv(sv);
     else {
        SvTEMP_off(sv);