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++/77864] [5/6/7 Regression] Wrong exception specification on maps and sets


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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Oct  5 13:43:44 2016
New Revision: 240787

URL: https://gcc.gnu.org/viewcvs?rev=240787&root=gcc&view=rev
Log:
77864 Fix noexcept conditions for map/set default constructors

        PR libstdc++/77864
        * include/bits/stl_map.h (map::map()): Use nothrow constructibility
        of comparison function in conditional noexcept.
        * include/bits/stl_multimap.h (multimap::multimap()): Likewise.
        * include/bits/stl_multiset.h (multiset::multiset()): Likewise.
        * include/bits/stl_set.h (set::set()): Likewise.
        * testsuite/23_containers/map/cons/noexcept_default_construct.cc:
        New test.
        * testsuite/23_containers/multimap/cons/noexcept_default_construct.cc:
        Likewise.
        * testsuite/23_containers/multiset/cons/noexcept_default_construct.cc:
        Likewise.
        * testsuite/23_containers/set/cons/noexcept_default_construct.cc:
        Likewise.

Added:
   
branches/gcc-6-branch/libstdc++-v3/testsuite/23_containers/map/cons/noexcept_default_construct.cc
   
branches/gcc-6-branch/libstdc++-v3/testsuite/23_containers/multimap/cons/noexcept_default_construct.cc
   
branches/gcc-6-branch/libstdc++-v3/testsuite/23_containers/multiset/cons/noexcept_default_construct.cc
   
branches/gcc-6-branch/libstdc++-v3/testsuite/23_containers/set/cons/noexcept_default_construct.cc
Modified:
    branches/gcc-6-branch/libstdc++-v3/ChangeLog
    branches/gcc-6-branch/libstdc++-v3/include/bits/stl_map.h
    branches/gcc-6-branch/libstdc++-v3/include/bits/stl_multimap.h
    branches/gcc-6-branch/libstdc++-v3/include/bits/stl_multiset.h
    branches/gcc-6-branch/libstdc++-v3/include/bits/stl_set.h

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