-
Notifications
You must be signed in to change notification settings - Fork 560
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
when(scalar){} -> S_looks_like_bool: Assertion `o' failed. #10287
Comments
From frank.wiegand@gmail.comThis is a bug report for perl from frank.wiegand@gmail.com, % perl-5.10.1 -E 'when(scalar){}' % perl-5.12.0-RC3 -E 'when(scalar){}' This regression has been introduced by the following commit (as git 5341b2b is the first bad commit Fix when( scalar ... ) bug looks_like_bool should look past scalar(). Prior to this fix, saying :100644 100644 729c25f0aa87bcd25f8606bd70d852c6c67e1967 c3736fac0b76b2e4beaf755d5a628d4d71e129d3 M op.c Thanks, Frank Flags: Site configuration information for perl 5.12.0: Configured by fw at Sat Apr 3 09:18:00 CEST 2010. Summary of my perl5 (revision 5 version 12 subversion 0) configuration: Locally applied patches: @INC for perl 5.12.0: Environment for perl 5.12.0: |
From @rgarciaOn 7 April 2010 13:36, Frank Wiegand <perlbug-followup@perl.org> wrote:
Thanks for the report and the bisect ! Here's a patch that makes it report a syntax error instead. I'll apply Inline Patchdiff --git a/op.c b/op.c
index 9c94cc8..76eb16f 100644
--- a/op.c
+++ b/op.c
@@ -5282,14 +5282,11 @@ S_looks_like_bool(pTHX_ const OP *o)
&& looks_like_bool(cLOGOPo->op_first->op_sibling));
case OP_NULL:
+ case OP_SCALAR:
return (
o->op_flags & OPf_KIDS
&& looks_like_bool(cUNOPo->op_first));
- case OP_SCALAR:
- return looks_like_bool(cUNOPo->op_first);
-
-
case OP_ENTERSUB:
case OP_NOT: case OP_XOR: |
The RT System itself - Status changed from 'new' to 'open' |
From @obraOn Fri Apr 09 03:25:49 2010, rgs@consttype.org wrote:
rgs - wanna cherrypick this to maint?
|
@iabyn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#74114 (status was 'resolved')
Searchable as RT74114$
The text was updated successfully, but these errors were encountered: