[Bug libstdc++/77864] [5/6/7 Regression] Wrong exception specification on maps and sets
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Oct 5 13:44:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77864
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Oct 5 13:43:58 2016
New Revision: 240789
URL: https://gcc.gnu.org/viewcvs?rev=240789&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-5-branch/libstdc++-v3/testsuite/23_containers/map/cons/noexcept_default_construct.cc
branches/gcc-5-branch/libstdc++-v3/testsuite/23_containers/multimap/cons/noexcept_default_construct.cc
branches/gcc-5-branch/libstdc++-v3/testsuite/23_containers/multiset/cons/noexcept_default_construct.cc
branches/gcc-5-branch/libstdc++-v3/testsuite/23_containers/set/cons/noexcept_default_construct.cc
Modified:
branches/gcc-5-branch/libstdc++-v3/ChangeLog
branches/gcc-5-branch/libstdc++-v3/include/bits/stl_map.h
branches/gcc-5-branch/libstdc++-v3/include/bits/stl_multimap.h
branches/gcc-5-branch/libstdc++-v3/include/bits/stl_multiset.h
branches/gcc-5-branch/libstdc++-v3/include/bits/stl_set.h
More information about the Gcc-bugs
mailing list