[Bug libstdc++/52942] [4.7/4.8 Regression] using std::ref with a std::unordered_map fails to compile
paolo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 12 12:19:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52942
--- Comment #14 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-04-12 12:18:33 UTC ---
Author: paolo
Date: Thu Apr 12 12:18:23 2012
New Revision: 186376
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186376
Log:
2012-04-12 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/52942
* include/bits/stl_function.h (_Identity, _Select1st, _Select2nd):
In C++11 mode do not derive from std::unary_function.
* include/ext/functional (identity, select1st, select2nd): Adjust.
* testsuite/23_containers/unordered_map/requirements/52942.cc: New.
* testsuite/23_containers/unordered_set/requirements/52942.cc: Likewise.
Added:
branches/gcc-4_7-branch/libstdc++-v3/testsuite/23_containers/unordered_map/requirements/52942.cc
branches/gcc-4_7-branch/libstdc++-v3/testsuite/23_containers/unordered_set/requirements/52942.cc
Modified:
branches/gcc-4_7-branch/libstdc++-v3/ChangeLog
branches/gcc-4_7-branch/libstdc++-v3/include/bits/stl_function.h
branches/gcc-4_7-branch/libstdc++-v3/include/ext/functional
More information about the Gcc-bugs
mailing list