[Bug libstdc++/64140] match_results.prefix() returns an incorrect result if regex_iterator holds a zero-length match
timshen at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Dec 4 04:25:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64140
--- Comment #1 from Tim Shen <timshen at gcc dot gnu.org> ---
Author: timshen
Date: Thu Dec 4 04:25:12 2014
New Revision: 218340
URL: https://gcc.gnu.org/viewcvs?rev=218340&root=gcc&view=rev
Log:
PR libstdc++/64140
* include/bits/regex.tcc (regex_iterator<>::operator++): Update
prefix.matched after modifying prefix.first.
* testsuite/28_regex/iterators/regex_iterator/char/64140.cc: New
testcase.
Added:
trunk/libstdc++-v3/testsuite/28_regex/iterators/regex_iterator/char/64140.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/regex.tcc
More information about the Gcc-bugs
mailing list