]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/testsuite/28_regex/algorithms/regex_search/ecma/flags.cc
re PR libstdc++/63920 (Any regular expression should not match an empty sequence...
authorTim Shen <timshen@google.com>
Tue, 25 Nov 2014 05:43:04 +0000 (05:43 +0000)
committerTim Shen <timshen@gcc.gnu.org>
Tue, 25 Nov 2014 05:43:04 +0000 (05:43 +0000)
commit02ba3fc22d5b4101f99bd5b0cc5101a04cdd0eb2
treeb5ca80b80eb4fcbdf7b29b72f70f709d6d1c5f9f
parent5534b254aeaec496b1aa0cf9f9c951c9debfa97d
re PR libstdc++/63920 (Any regular expression should not match an empty sequence if match_not_null is specified)

PR libstdc++/63920
* include/bits/regex_executor.h: Make _M_begin non const.
* include/bits/regex_executor.tcc (_Executor<>::_M_search): Increase
_M_begin in search algorithm, so that _M_begin is treated as
"current start position" for each search iteration.
* testsuite/28_regex/algorithms/regex_search/ecma/flags.cc: New
testcase.

From-SVN: r218037
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/regex_executor.h
libstdc++-v3/include/bits/regex_executor.tcc
libstdc++-v3/testsuite/28_regex/algorithms/regex_search/ecma/flags.cc