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
Incorrect op_flags (255) when smartmatching: @nums[0..-1] ~~ [] #14742
Comments
From @wolfsageCreated by wolfsage@gmail.comop.c has this bug: +++ b/op.c /* anonlist now needs a list from this op, was previously used in I believe the above two lines are intended to clear the This should be: cond->op_flags &= ~(OPf_WANT_SCALAR | OPf_REF); To see this in action: mhorsfall@dumai:~/p5/perl$ perl -MO=Concise,-debug -e '@nums[0..-1] Or: mhorsfall@dumai:~/p5/perl$ perl -MO=Concise -e '@nums[0..-1] ~~ []' I'm not yet sure how to test this aside from a test that checks Perl Info
|
From @wolfsageOn Tue, Jun 9, 2015 at 4:32 PM, Matthew Horsfall (alh)
I believe I've found a valid (well, usable) test: mhorsfall@dumai:~/p5/perl$ ./perl -Ilib -e '$SIG{TERM} = sub { print Above, we localize $SIG{TERM} while we test it against smartmatch, and With 724fb20, we get this: mhorsfall@dumai:~/p5/perl$ ./perl -Ilib -e '$SIG{TERM} = sub { print If we agree that this test case shows the fix, I could turn it into a -- Matthew Horsfall (alh) |
Migrated from rt.perl.org#125369 (status was 'new')
Searchable as RT125369$
The text was updated successfully, but these errors were encountered: