https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67239
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> --- Still fails with r230191 at -O2: Program received signal SIGSEGV, Segmentation fault. 0xf7571e97 in _Unwind_RaiseException (exc=<optimized out>) at /export/gnu/import/git/sources/gcc/libgcc/unwind.inc:136 136 } (gdb) bt #0 0xf7571e97 in _Unwind_RaiseException (exc=<optimized out>) at /export/gnu/import/git/sources/gcc/libgcc/unwind.inc:136 #1 0x00403510 in std::_Hashtable<int, int, __gnu_cxx::throw_allocator_limit<int>, std::__detail::_Identity, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, true, true> >::_M_rehash (this=<optimized out>, __n=<optimized out>, __state=<optimized out>) at /export/build/gnu/gcc-x32/build-x86_64-linux/x86_64-pc-linux-gnu/x32/libstdc++-v3/include/bits/hashtable.h:1949 #2 0xffffcde0 in ?? () #3 0xffffcde0 in ?? () #4 0x0060aa20 in ?? () #5 0x0040358a in std::_Hashtable<int, int, __gnu_cxx::throw_allocator_limit<int>, std::__detail::_Identity, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, true, true> >::_M_insert_unique_node (this=this@entry=0xffffcde0, __bkt=4294954380, __bkt@entry=0, __code=__code@entry=0, __node=<optimized out>) at /export/build/gnu/gcc-x32/build-x86_64-linux/x86_64-pc-linux-gnu/x32/libstdc++-v3/include/bits/hashtable.h:1587 #6 0x0040414a in std::_Hashtable<int, int, __gnu_cxx::throw_allocator_limit<int>, std::__detail::_Identity, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_r---Type <return> to continue, or q <return> to quit--- ehash_policy, std::__detail::_Hashtable_traits<false, true, true> >::_M_insert<int const&, std::__detail::_AllocNode<__gnu_cxx::throw_allocator_limit<std::__detail::_Hash_node<int, false> > > > (__node_gen=<synthetic pointer>, __v=@0xffffcddc: 0, this=0xffffcde0) at /export/build/gnu/gcc-x32/build-x86_64-linux/x86_64-pc-linux-gnu/x32/libstdc++-v3/include/bits/hashtable.h:1691 #7 std::__detail::_Insert_base<int, int, __gnu_cxx::throw_allocator_limit<int>, std::__detail::_Identity, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, true, true> >::insert ( __v=@0xffffcddc: 0, this=0xffffcde0) at /export/build/gnu/gcc-x32/build-x86_64-linux/x86_64-pc-linux-gnu/x32/libstdc++-v3/include/bits/hashtable_policy.h:713 #8 std::unordered_set<int, std::hash<int>, std::equal_to<int>, __gnu_cxx::throw_allocator_limit<int> >::insert (__x=@0xffffcddc: 0, this=0xffffcde0) at /export/build/gnu/gcc-x32/build-x86_64-linux/x86_64-pc-linux-gnu/x32/libstdc++-v3/include/bits/unordered_set.h:413 #9 test01 () at /export/gnu/import/git/sources/gcc/libstdc++-v3/testsuite/23_containers/unordered_set/insert/hash_policy.cc:46 #10 0x00400f48 in main () at /export/gnu/import/git/sources/gcc/libstdc++-v3/testsuite/23_containers/unordered_set/insert/hash_policy.cc:110 (gdb)