This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/83600] std::match_results C++14 conformance issue: iterators not equal


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83600

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Fri Jan  5 22:22:28 2018
New Revision: 256292

URL: https://gcc.gnu.org/viewcvs?rev=256292&root=gcc&view=rev
Log:
PR libstdc++/83600 fix end iterator for unready std::match_results

Backport from mainline
2017-12-27  Jonathan Wakely  <jwakely@redhat.com>

        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.

Modified:
    branches/gcc-7-branch/libstdc++-v3/ChangeLog
    branches/gcc-7-branch/libstdc++-v3/include/bits/regex.h
   
branches/gcc-7-branch/libstdc++-v3/testsuite/28_regex/match_results/ctors/char/default.cc
   
branches/gcc-7-branch/libstdc++-v3/testsuite/28_regex/match_results/ctors/wchar_t/default.cc

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]