This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/64302] The match_results::cbegin()/cend() return incorrect results
- From: "timshen at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 17 Dec 2014 10:27:54 +0000
- Subject: [Bug libstdc++/64302] The match_results::cbegin()/cend() return incorrect results
- Auto-submitted: auto-generated
- References: <bug-64302-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64302
--- Comment #2 from Tim Shen <timshen at gcc dot gnu.org> ---
Author: timshen
Date: Wed Dec 17 10:27:21 2014
New Revision: 218814
URL: https://gcc.gnu.org/viewcvs?rev=218814&root=gcc&view=rev
Log:
2014-12-17 Tim Shen <timshen@google.com>
PR libstdc++/64302
PR libstdc++/64303
Backported form mainline
2014-12-17 Tim Shen <timshen@google.com>
* 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.
Added:
branches/gcc-4_9-branch/libstdc++-v3/testsuite/28_regex/iterators/regex_token_iterator/64303.cc
Modified:
branches/gcc-4_9-branch/libstdc++-v3/ChangeLog
branches/gcc-4_9-branch/libstdc++-v3/include/bits/regex.h
branches/gcc-4_9-branch/libstdc++-v3/include/bits/regex.tcc