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