re PR libstdc++/56267 (unordered containers require Assignable hash function)
authorJonathan Wakely <jwakely.gcc@gmail.com>
Mon, 11 Feb 2013 00:19:29 +0000 (00:19 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 11 Feb 2013 00:19:29 +0000 (00:19 +0000)
commitdfed5434f3946d39cef0d6965891a927f8b388d2
treeb7fd036f3b00bc53b17087e13cf71796eaa81709
parenta9b68b8289efff8361e9f3a66c9055a70ce62ee5
re PR libstdc++/56267 (unordered containers require Assignable hash function)

PR libstdc++/56267
* include/bits/hashtable.h (__cache_default): Check if hash function
is copy assignable.
* testsuite/23_containers/unordered_set/56267.cc: New.
* testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
dg-error line number.
* testsuite/23_containers/unordered_set/
not_default_constructible_hash_neg.cc: Likewise.

From-SVN: r195936
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/hashtable.h
libstdc++-v3/testsuite/23_containers/unordered_set/56267.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/unordered_set/instantiation_neg.cc
libstdc++-v3/testsuite/23_containers/unordered_set/not_default_constructible_hash_neg.cc