http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56112
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-01-28 23:07:59 UTC --- Author: redi Date: Mon Jan 28 23:07:35 2013 New Revision: 195520 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195520 Log: PR libstdc++/56112 * include/bits/hashtable_policy.h (insert(_Pair&&)): Use _M_emplace to construct value_type explicitly before trying to extract the key. * testsuite/23_containers/unordered_map/cons/56112.cc: New. Added: trunk/libstdc++-v3/testsuite/23_containers/unordered_map/cons/56112.cc Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/bits/hashtable_policy.h