This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/56112] [4.8 Regression] cannot create unordered_map from range of types convertible to value_type


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]