PR libstdc++/83600 fix end iterator for unready std::match_results
authorJonathan Wakely <jwakely@redhat.com>
Wed, 27 Dec 2017 22:18:08 +0000 (22:18 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 27 Dec 2017 22:18:08 +0000 (22:18 +0000)
commitecba3566861996cee8635e4c98b0fc4154e64659
tree645c1fd77c89183510d9e77d2460ea3237acee4e
parent8afe2df012564c108406069fea473c02463db6fb
PR libstdc++/83600 fix end iterator for unready std::match_results

PR libstdc++/83600
* include/bits/regex.h (match_results::end()): Return valid iterator
when not ready.
* testsuite/28_regex/match_results/ctors/char/default.cc: Check that
unready objects are empty and have equal begin and end iterators.
* testsuite/28_regex/match_results/ctors/wchar_t/default.cc: Likewise.

From-SVN: r256014
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/regex.h
libstdc++-v3/testsuite/28_regex/match_results/ctors/char/default.cc
libstdc++-v3/testsuite/28_regex/match_results/ctors/wchar_t/default.cc