New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong assignment in nested assignment together with subroutine ca ll #6932
Comments
From wolf-dietrich.moeller@siemens.comWrong assignment in nested assignment together with subroutine call. Given one assignment with a concatenation on the right hand side. If the inner assignment concatenates two constant strings or scalar If the inner assignment assigns the concatenation of a string and the result If a "dummy" empty string is concatenated at the beginning of the outer Working test examples, sample output, and Perl version info see test program ######################### start test program ####################### Dr. Wolf-Dietrich Moeller |
From japhy@pobox.comOn Nov 17, Moeller Wolf-Dietrich said:
This only happens with lexicals. my ($A, $B); sub foo { "x" } -- |
From @rgarciaJeff 'japhy' Pinyan wrote:
Ouch. #!perl |
From @iabynOn Tue, Nov 18, 2003 at 01:55:41PM +0100, Rafael Garcia-Suarez wrote:
Both the inner and outer OP_CONCATs have the TEMP target optimised away;
Looks like 3612 judging by these excerpts from the log: ____________________________________________________________________________ [ 4749] By: gsar on 2000/01/02 21:37:29 -- |
From @andk
> Looks like 3612 judging by these excerpts from the log: Confirmed. -- |
From @rgsDave Mitchell wrote:
I'm tempted to apply the fix below. (Look closer.) Index: opcode.pl--- opcode.pl (revision 2824) left_shift left bitshift (<<) ck_bitop fsT2 S S |
From @rgsI warned:
Temptation applied as : Fix bug [perl #24508] Wrong assignment in nested assignment It feels safer than adding another piece on the jenga tower. |
@rgs - Status changed from 'new' to 'resolved' |
Migrated from rt.perl.org#24508 (status was 'resolved')
Searchable as RT24508$
The text was updated successfully, but these errors were encountered: