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++/51558] Declaration of unspecialized std::hash<_Tp>::operator()(_Tp) turns compile-time errors into link-time errors


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51558

--- Comment #8 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-12-15 22:15:28 UTC ---
Author: paolo
Date: Thu Dec 15 22:15:21 2011
New Revision: 182392

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182392
Log:
2011-12-15  Paolo Carlini  <paolo.carlini@oracle.com>
        Jonathan Wakely  <jwakely.gcc@gmail.com>

    PR libstdc++/51558
    * include/bits/functional_hash.h (struct hash): Add static_assert.
    * src/compatibility-c++0x.cc: Adjust compatibility definitions.
    * testsuite/23_containers/unordered_map/erase/51142.cc: Adjust.
    * testsuite/23_containers/unordered_set/erase/51142.cc: Likewise.
    * testsuite/23_containers/unordered_multimap/erase/51142.cc: Likewise.
    * testsuite/23_containers/unordered_multiset/erase/51142.cc: Likewise.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/functional_hash.h
    trunk/libstdc++-v3/src/compatibility-c++0x.cc
    trunk/libstdc++-v3/testsuite/23_containers/unordered_map/erase/51142.cc
   
trunk/libstdc++-v3/testsuite/23_containers/unordered_multimap/erase/51142.cc
   
trunk/libstdc++-v3/testsuite/23_containers/unordered_multiset/erase/51142.cc
    trunk/libstdc++-v3/testsuite/23_containers/unordered_set/erase/51142.cc


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