summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-15 16:41:53 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-15 16:41:53 +0000
commit6b66af1727d09fb9889253a844f0fb19f8fd63e9 (patch)
treea14be121c3a2388c5d932f95e2499b55ece2977c /op.c
parent0994714a4e4e0304c91b2fa0c73d50669931b7e2 (diff)
downloadperl-6b66af1727d09fb9889253a844f0fb19f8fd63e9.tar.gz
fix misoptimization of C<my($x,$y); $x = $y = 1 + $z;> (from
Ilya Zakharevich) p4raw-id: //depot/perl@5100
Diffstat (limited to 'op.c')
-rw-r--r--op.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/op.c b/op.c
index e1d0dcdfd9..bc30f01d54 100644
--- a/op.c
+++ b/op.c
@@ -5719,7 +5719,9 @@ Perl_ck_sassign(pTHX_ OP *o)
OP *kid = cLISTOPo->op_first;
/* has a disposable target? */
if ((PL_opargs[kid->op_type] & OA_TARGLEX)
- && !(kid->op_flags & OPf_STACKED))
+ && !(kid->op_flags & OPf_STACKED)
+ /* Cannot steal the second time! */
+ && !(kid->op_private & OPpTARGET_MY))
{
OP *kkid = kid->op_sibling;