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
Unexpected regex failure. #8210
Comments
From @AbigailCreated by @Abigail#!/usr/bin/perl use strict; $_ = "A B"; I would have expected that all the cases matched. This behaviour first Replacing the conditional '(?(1))' with another conditional still causes Perl Info
|
From @hvds"abigail@abigail.nl (via RT)" <perlbug-followup@perl.org> wrote: Hmm: zen% perl -Dr -e '"A B" =~ /^(.)\s+.$(?(1))/' 2>&1 | grep 'Guessing\|STCLASS' So, we fail the STCLASS check due to a bum endpos, acquired because we are Further investigation (setting breakpoints on all the labels after line 597) This is plumber programming I'm afraid, I don't have time right now to The patch does at least pass all existing tests and the new one. It would Hugo Inline Patch--- t/op/re_tests.old Sun Mar 27 15:26:05 2005
+++ t/op/re_tests Wed Nov 16 14:15:17 2005
@@ -958,3 +958,4 @@
(a|aa|aaa|aaaa|aaaaa|aaaaaa)(??{$1&&"foo"})(b|c) aaaaaaaaaaaaaaab n - -
^(a*?)(?!(aa|aaaa)*$) aaaaaaaaaaaaaaaaaaaa y $1 a # [perl #34195]
^(a*?)(?!(aa|aaaa)*$)(?=a\z) aaaaaaaa y $1 aaaaaaa
+^(.)\s+.$(?(1)) A B y $1 A # [perl #37688]
--- regexec.c.old Fri Nov 4 19:07:37 2005
+++ regexec.c Wed Nov 16 14:32:46 2005
@@ -518,6 +518,7 @@
|| ((slen = SvCUR(check)) > 1
&& memNE(SvPVX_const(check), s, slen)))
goto report_neq;
+ check_at = s;
goto success_at_start;
}
} |
The RT System itself - Status changed from 'new' to 'open' |
From @rgshv@crypt.org wrote:
Thanks, applied to blead as change #26137. |
From @andk
> This is a bug report for perl from abigail@abigail.nl, > ----------------------------------------------------------------- > #!/usr/bin/perl > use strict; > $_ = "A B"; > I would have expected that all the cases matched. This behaviour first > ccversion='', gccversion='3.0.4', gccosandvers='' binary search did not find the responsible patch because there is an Does anybody have other interesting observations on this? -- |
@smpeters - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#37688 (status was 'resolved')
Searchable as RT37688$
The text was updated successfully, but these errors were encountered: