http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55043
--- Comment #30 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-02-20 23:55:54 UTC --- Author: redi Date: Wed Feb 20 23:55:48 2013 New Revision: 196187 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196187 Log: PR libstdc++/55043 * include/bits/alloc_traits.h (allocator_traits::construct): Disable unless construction would be well-formed. (__allow_copy_cons, __check_copy_constructible): Define. * include/bits/unordered_map.h (__check_copy_constructible): Use as base class so copy constructor will be deleted if appropriate. * include/bits/unordered_set.h: Likewise. * include/std/unordered_set: Include alloc_traits.h. * include/std/unordered_set: Likewise. * include/debug/unordered_map.h: Default copy and move constructors. * include/debug/unordered_set.h: Likewise. * testsuite/23_containers/unordered_map/55043.cc: Fix test. * testsuite/23_containers/unordered_multimap/55043.cc: Likewise. * testsuite/23_containers/unordered_multiset/55043.cc: Likewise. * testsuite/23_containers/unordered_set/55043.cc: Likewise. * testsuite/23_containers/unordered_map/requirements/53339.cc: XFAIL, cannot support incomplete types. * testsuite/23_containers/unordered_multimap/requirements/53339.cc: Likewise. * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust dg-error line number. Added: branches/gcc-4_7-branch/libstdc++-v3/testsuite/23_containers/unordered_map/55043.cc branches/gcc-4_7-branch/libstdc++-v3/testsuite/23_containers/unordered_map/requirements/53339.cc - copied, changed from r196178, branches/gcc-4_7-branch/libstdc++-v3/testsuite/23_containers/unordered_set/instantiation_neg.cc branches/gcc-4_7-branch/libstdc++-v3/testsuite/23_containers/unordered_multimap/55043.cc branches/gcc-4_7-branch/libstdc++-v3/testsuite/23_containers/unordered_multimap/requirements/53339.cc - copied, changed from r196178, branches/gcc-4_7-branch/libstdc++-v3/testsuite/23_containers/unordered_set/instantiation_neg.cc branches/gcc-4_7-branch/libstdc++-v3/testsuite/23_containers/unordered_multiset/55043.cc branches/gcc-4_7-branch/libstdc++-v3/testsuite/23_containers/unordered_set/55043.cc Modified: branches/gcc-4_7-branch/libstdc++-v3/ChangeLog branches/gcc-4_7-branch/libstdc++-v3/include/bits/alloc_traits.h branches/gcc-4_7-branch/libstdc++-v3/include/bits/unordered_map.h branches/gcc-4_7-branch/libstdc++-v3/include/bits/unordered_set.h branches/gcc-4_7-branch/libstdc++-v3/include/debug/unordered_map branches/gcc-4_7-branch/libstdc++-v3/include/debug/unordered_set branches/gcc-4_7-branch/libstdc++-v3/include/std/unordered_map branches/gcc-4_7-branch/libstdc++-v3/include/std/unordered_set branches/gcc-4_7-branch/libstdc++-v3/testsuite/23_containers/unordered_set/instantiation_neg.cc