https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96800
Bug ID: 96800 Summary: [11 regression] compilation error for 20_util/function_objects/searchers.cc after r11-2857 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- g:4797a61cc5024fc9adf5918e9bb2b78988f9e4d4, r11-2857 spawn -ignore SIGHUP /home/seurer/gcc/git/build/gcc-test/./gcc/xg++ -shared-libgcc -B/home/seurer/gcc/git/build/gcc-test/./gcc -nostdinc++ -L/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/src -L/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -B/home/seurer/gcc/git/install/gcc-test/powerpc64-unknown-linux-gnu/bin/ -B/home/seurer/gcc/git/install/gcc-test/powerpc64-unknown-linux-gnu/lib/ -isystem /home/seurer/gcc/git/install/gcc-test/powerpc64-unknown-linux-gnu/include -isystem /home/seurer/gcc/git/install/gcc-test/powerpc64-unknown-linux-gnu/sys-include -B/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/./libstdc++-v3/src/.libs -fmessage-length=0 -fno-show-column -ffunction-sections -fdata-sections -g -O2 -D_GNU_SOURCE -DLOCALEDIR="." -nostdinc++ -I/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include/powerpc64-unknown-linux-gnu -I/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include -I/home/seurer/gcc/git/gcc-test/libstdc++-v3/libsupc++ -I/home/seurer/gcc/git/gcc-test/libstdc++-v3/include/backward -I/home/seurer/gcc/git/gcc-test/libstdc++-v3/testsuite/util /home/seurer/gcc/git/gcc-test/libstdc++-v3/testsuite/20_util/function_objects/searchers.cc -std=gnu++17 -fdiagnostics-plain-output ./libtestc++.a -Wl,--gc-sections -L/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/src/filesystem/.libs -lm -o ./searchers.exe In file included from /home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include/bits/hashtable.h:35, from /home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include/unordered_map:46, from /home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include/functional:61, from /home/seurer/gcc/git/gcc-test/libstdc++-v3/testsuite/20_util/function_objects/searchers.cc:21: /home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include/bits/hashtable_policy.h: In instantiation of 'const _Equal& std::__detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _Traits>::_M_eq() const [with _Key = char; _Value = std::pair<const char, long int>; _ExtractKey = std::__detail::_Select1st; _Equal = test03()::<unnamed struct>; _Hash = test03()::<unnamed struct>; _RangeHash = std::__detail::_Mod_range_hashing; _Unused = std::__detail::_Default_ranged_hash; _Traits = std::__detail::_Hashtable_traits<true, false, true>]': /home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include/bits/hashtable.h:621: required from 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::key_equal std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::key_eq() const [with _Key = char; _Value = std::pair<const char, long int>; _Alloc = std::allocator<std::pair<const char, long int> >; _ExtractKey = std::__detail::_Select1st; _Equal = test03()::<unnamed struct>; _Hash = test03()::<unnamed struct>; _RangeHash = std::__detail::_Mod_range_hashing; _Unused = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, false, true>; std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>::key_equal = test03()::<unnamed struct>]' /home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include/bits/unordered_map.h:851: required from 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_equal std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_eq() const [with _Key = char; _Tp = long int; _Hash = test03()::<unnamed struct>; _Pred = test03()::<unnamed struct>; _Alloc = std::allocator<std::pair<const char, long int> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_equal = test03()::<unnamed struct>]' /home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include/functional:1054: required from '_Pred std::__boyer_moore_map_base<_Key, _Tp, _Hash, _Pred>::_M_pred() const [with _Key = char; _Tp = long int; _Hash = test03()::<unnamed struct>; _Pred = test03()::<unnamed struct>]' /home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include/functional:1250: required from 'std::pair<_ForwardIterator2, _ForwardIterator2> std::boyer_moore_searcher<_RAIter, _Hash, _BinaryPredicate>::operator()(_RandomAccessIterator2, _RandomAccessIterator2) const [with _RandomAccessIterator2 = const char*; _RAIter = const char*; _Hash = test03()::<unnamed struct>; _BinaryPredicate = test03()::<unnamed struct>]' /home/seurer/gcc/git/gcc-test/libstdc++-v3/testsuite/20_util/function_objects/searchers.cc:165: required from here /home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include/bits/hashtable_policy.h:1704: error: 'std::__detail::_Hashtable_ebo_helper<0, test03()::<unnamed struct>, true>' is an ambiguous base of 'std::__detail::_Hashtable_base<char, std::pair<const char, long int>, std::__detail::_Select1st, test03()::<unnamed struct>, test03()::<unnamed struct>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<true, false, true> >' compiler exited with status 1 FAIL: 20_util/function_objects/searchers.cc (test for excess errors) Excess errors: /home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include/bits/hashtable_policy.h:1704: error: 'std::__detail::_Hashtable_ebo_helper<0, test03()::<unnamed struct>, true>' is an ambiguous base of 'std::__detail::_Hashtable_base<char, std::pair<const char, long int>, std::__detail::_Select1st, test03()::<unnamed struct>, test03()::<unnamed struct>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<true, false, true> >' UNRESOLVED: 20_util/function_objects/searchers.cc compilation failed to produce executable testcase /home/seurer/gcc/git/gcc-test/libstdc++-v3/testsuite/libstdc++-dg/conformance.exp completed in 16 seconds === libstdc++ Summary === # of unexpected failures 1 # of unresolved testcases 1