[Bug libstdc++/68863] Regular expressions: Backreferences don't work in negative lookahead
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68863 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |4.9.4 Known to fail||4.9.3, 5.3.0
[Bug libstdc++/68863] Regular expressions: Backreferences don't work in negative lookahead
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68863 Tim Shen changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #5 from Tim Shen --- Fixed in trunk, and backported to gcc 5 and gcc 4.9.
[Bug libstdc++/68863] Regular expressions: Backreferences don't work in negative lookahead
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68863 --- Comment #4 from Tim Shen --- Author: timshen Date: Tue Dec 15 05:59:01 2015 New Revision: 231643 URL: https://gcc.gnu.org/viewcvs?rev=231643&root=gcc&view=rev Log: Backport from mainline 2015-12-15 Tim Shen PR libstdc++/68863 * include/bits/regex_executor.tcc (_Executor::_M_lookahead): Copy the captured content for lookahead, so that the backreferences inside can refer to them. * testsuite/28_regex/algorithms/regex_match/ecma/char/68863.cc: New testcase. Added: branches/gcc-4_9-branch/libstdc++-v3/testsuite/28_regex/algorithms/regex_match/ecma/char/68863.cc Modified: branches/gcc-4_9-branch/libstdc++-v3/ChangeLog branches/gcc-4_9-branch/libstdc++-v3/include/bits/regex_executor.tcc
[Bug libstdc++/68863] Regular expressions: Backreferences don't work in negative lookahead
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68863 --- Comment #3 from Tim Shen --- Author: timshen Date: Tue Dec 15 05:19:20 2015 New Revision: 231642 URL: https://gcc.gnu.org/viewcvs?rev=231642&root=gcc&view=rev Log: Backport from mainline 2015-12-15 Tim Shen PR libstdc++/68863 * include/bits/regex_executor.tcc (_Executor::_M_lookahead): Copy the captured content for lookahead, so that the backreferences inside can refer to them. * testsuite/28_regex/algorithms/regex_match/ecma/char/68863.cc: New testcase. Added: branches/gcc-5-branch/libstdc++-v3/testsuite/28_regex/algorithms/regex_match/ecma/char/68863.cc Modified: branches/gcc-5-branch/libstdc++-v3/ChangeLog branches/gcc-5-branch/libstdc++-v3/include/bits/regex_executor.tcc
[Bug libstdc++/68863] Regular expressions: Backreferences don't work in negative lookahead
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68863 --- Comment #2 from Tim Shen --- Author: timshen Date: Tue Dec 15 04:50:29 2015 New Revision: 231641 URL: https://gcc.gnu.org/viewcvs?rev=231641&root=gcc&view=rev Log: PR libstdc++/68863 * include/bits/regex_executor.tcc (_Executor::_M_lookahead): Copy the captured content for lookahead, so that the backreferences inside can refer to them. * testsuite/28_regex/algorithms/regex_match/ecma/char/68863.cc: New testcase. Added: trunk/libstdc++-v3/testsuite/28_regex/algorithms/regex_match/ecma/char/68863.cc Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/bits/regex_executor.tcc
[Bug libstdc++/68863] Regular expressions: Backreferences don't work in negative lookahead
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68863 Tim Shen changed: What|Removed |Added CC||timshen at gcc dot gnu.org --- Comment #1 from Tim Shen --- I believe that it already gets fixed in my refactoring branch (https://github.com/innocentim/gcc/commits/master). It's waiting for review. I'm looking at the root cause to come up with a backport, if it's needed.