r242025 - in /trunk/libstdc++-v3: ChangeLog inc...
timshen@gcc.gnu.org
timshen@gcc.gnu.org
Wed Nov 9 22:11:00 GMT 2016
Author: timshen
Date: Wed Nov 9 22:11:32 2016
New Revision: 242025
URL: https://gcc.gnu.org/viewcvs?rev=242025&root=gcc&view=rev
Log:
* libstdc++-v3/include/bits/regex.h (regex_iterator::regex_iterator()):
Define end() as _M_pregex == nullptr.
* libstdc++-v3/include/bits/regex.tcc (regex_iterator::operator==(),
regex_iterator::operator++()): Fix operator==() and operator++() to
look at null-ness of _M_pregex on both sides.
* testsuite/28_regex/regression.cc: New testcase.
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/regression.cc
More information about the Gcc-cvs
mailing list