]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/testsuite/28_regex/iterators/regex_token_iterator/64303.cc
re PR libstdc++/64302 (The match_results::cbegin()/cend() return incorrect results)
authorTim Shen <timshen@google.com>
Wed, 17 Dec 2014 09:25:44 +0000 (09:25 +0000)
committerTim Shen <timshen@gcc.gnu.org>
Wed, 17 Dec 2014 09:25:44 +0000 (09:25 +0000)
commite16a69a8f22a2b86f216e917be5578fa4d21d7b8
tree6ef899dd807f5a47007dd3bd180074569ad84d15
parentb20487079f51742acde405bd968dbb3ba25411c8
re PR libstdc++/64302 (The match_results::cbegin()/cend() return incorrect results)

PR libstdc++/64302
PR libstdc++/64303
* include/bits/regex.h (match_results::cbegin, match_results::cend,
regex_token_iterator::regex_token_iterator,
regex_token_iterator::_M_normalize_result): Fix match_results cbegin
and cend and regex_token_iterator::_M_result invariant.
* include/bits/regex.tcc: Fix regex_token_iterator::_M_result invariant.
* testsuite/28_regex/iterators/regex_token_iterator/64303.cc: Testcase.

From-SVN: r218810
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/regex.h
libstdc++-v3/include/bits/regex.tcc
libstdc++-v3/testsuite/28_regex/iterators/regex_token_iterator/64303.cc [new file with mode: 0644]