This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/56112] [4.8 Regression] cannot create unordered_map from range of types convertible to value_type
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 28 Jan 2013 23:07:59 +0000
- Subject: [Bug libstdc++/56112] [4.8 Regression] cannot create unordered_map from range of types convertible to value_type
- Auto-submitted: auto-generated
- References: <bug-56112-4@http.gcc.gnu.org/bugzilla/>
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