]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR libstdc++/68863 (Regular expressions: Backreferences don't work in negative...
authorTim Shen <timshen@google.com>
Tue, 15 Dec 2015 04:50:29 +0000 (04:50 +0000)
committerTim Shen <timshen@gcc.gnu.org>
Tue, 15 Dec 2015 04:50:29 +0000 (04:50 +0000)
commit3ce38f68f93279b193ecb91cdc3635db6f9c810f
treefe2c602d1e564ff187667484cd664744240ba9e6
parentfcb9363eb9ba94b8e157444dc7ac2c93e69d6c58
re PR libstdc++/68863 (Regular expressions: Backreferences don't work in negative lookahead)

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.

From-SVN: r231641
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/regex_executor.tcc
libstdc++-v3/testsuite/28_regex/algorithms/regex_match/ecma/char/68863.cc [new file with mode: 0644]