diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-02-15 16:41:53 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-02-15 16:41:53 +0000 |
commit | 6b66af1727d09fb9889253a844f0fb19f8fd63e9 (patch) | |
tree | a14be121c3a2388c5d932f95e2499b55ece2977c /op.c | |
parent | 0994714a4e4e0304c91b2fa0c73d50669931b7e2 (diff) | |
download | perl-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |