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
Optimization busted: '@a = "b", sort @a' drops "b" #7311
Comments
From @chipdudeCreated by chip@pobox.comThe optimization for '@a = sort @a' is casting too wide a net: use strict; my @list = qw(a g r t e r); The "foo" is missing. Oops. This bug still occurs in blead. Perl Info
|
From @iabynOn Fri, May 21, 2004 at 07:45:50PM -0000, Chip Salzenberg wrote:
Oh the shame... Fixed below. -- Change 22839 by davem@davem-percy on 2004/05/22 11:15:34 [perl #29790] Optimization busted: '@a = "b", sort @a' drops "b" Affected files ... ... //depot/perl/op.c#627 edit Differences ... ==== //depot/perl/op.c#627 (text) ==== @@ -6642,6 +6642,17 @@ + /* check that the sort is the first arg on RHS of assign */ ==== //depot/perl/t/op/sort.t#24 (xtext) ==== @@ -5,7 +5,7 @@ # these shouldn't hang use Tie::Array; - @a = qw(b c a); @a = sort @a; - @a = qw(b c a); @a = sort mysort @a; |
The RT System itself - Status changed from 'new' to 'open' |
@rspier - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#29790 (status was 'resolved')
Searchable as RT29790$
The text was updated successfully, but these errors were encountered: