[Bug libstdc++/64239] regex_iterator::operator= should copy match_results::position
timshen at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Dec 13 22:19:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64239
--- Comment #5 from Tim Shen <timshen at gcc dot gnu.org> ---
Author: timshen
Date: Sat Dec 13 22:19:18 2014
New Revision: 218710
URL: https://gcc.gnu.org/viewcvs?rev=218710&root=gcc&view=rev
Log:
PR libstdc++/64239
* include/bits/regex.h (match_results<>::match_results,
match_results<>::operator=, match_results<>::position,
match_results<>::swap): Remove match_results::_M_in_iterator.
Fix ctor/assign/swap.
* include/bits/regex.tcc: (__regex_algo_impl<>,
regex_iterator<>::operator++): Set match_results::_M_begin as
"start position".
* testsuite/28_regex/iterators/regex_iterator/char/
string_position_01.cc: Test cases.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/regex.h
trunk/libstdc++-v3/include/bits/regex.tcc
trunk/libstdc++-v3/testsuite/28_regex/iterators/regex_iterator/char/string_position_01.cc
More information about the Gcc-bugs
mailing list