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