[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 23:11:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64239
--- Comment #6 from Tim Shen <timshen at gcc dot gnu.org> ---
Author: timshen
Date: Sat Dec 13 23:10:39 2014
New Revision: 218711
URL: https://gcc.gnu.org/viewcvs?rev=218711&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): 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:
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
branches/gcc-4_9-branch/libstdc++-v3/testsuite/28_regex/iterators/regex_iterator/char/string_position_01.cc
More information about the Gcc-bugs
mailing list