https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99496
Bug ID: 99496 Summary: [11 regression] g++.dg/modules/xtreme-header-3_c.C ICEs after r11-7557 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:ded6a1953dd7f43229c44e5d0d17c264338a3f4c, r11-7557 FAIL: g++.dg/modules/xtreme-header-3_c.C -std=c++17 (internal compiler error) FAIL: g++.dg/modules/xtreme-header-3_c.C -std=c++17 (test for excess errors) This was on a power 9 LE system. spawn -ignore SIGHUP /home3/seurer/gcc/git/build/gcc-test/gcc/testsuite/g++5/../../xg++ -B/home3/seurer/gcc/git/build/gcc-test/gcc/testsuite/g++5/../../ /home/seurer/gcc/git/gcc-test/gcc/testsuite/g++.dg/modules/xtreme-header-3_c.C -fdiagnostics-plain-output -nostdinc++ -I/home/seurer/gcc/git/build/gcc-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/powerpc64le-unknown-linux-gnu -I/home/seurer/gcc/git/build/gcc-test/powerpc64le-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 -fmessage-length=0 -std=c++17 -pedantic-errors -Wno-long-long -fmodules-ts -fno-module-lazy -S -o xtreme-header-3_c.s^M /home/seurer/gcc/git/gcc-test/gcc/testsuite/g++.dg/modules/xtreme-header-3_c.C:3:30: internal compiler error: same canonical type node for different types 'void' and 'std::__void_t<typename _Tp::allocator_type>'^M 0x106bb743 comptypes(tree_node*, tree_node*, int)^M /home/seurer/gcc/git/gcc-test/gcc/cp/typeck.c:1554^M 0x1059579f template_args_equal(tree_node*, tree_node*, bool)^M /home/seurer/gcc/git/gcc-test/gcc/cp/pt.c:9207^M 0x1059508f comp_template_args(tree_node*, tree_node*, tree_node**, tree_node**, bool)^M /home/seurer/gcc/git/gcc-test/gcc/cp/pt.c:9254^M 0x105a643b spec_hasher::equal(spec_entry*, spec_entry*)^M /home/seurer/gcc/git/gcc-test/gcc/cp/pt.c:1725^M 0x1062e90b hash_table<spec_hasher, false, xcallocator>::verify(spec_entry* const&, unsigned int)^M /home/seurer/gcc/git/gcc-test/gcc/hash-table.h:1032^M 0x1062f12f hash_table<spec_hasher, false, xcallocator>::find_slot_with_hash(spec_entry* const&, unsigned int, insert_option)^M /home/seurer/gcc/git/gcc-test/gcc/hash-table.h:968^M 0x105b168f add_mergeable_specialization(bool, spec_entry*, tree_node*, unsigned int)^M /home/seurer/gcc/git/gcc-test/gcc/cp/pt.c:30018^M 0x104c30bb trees_in::decl_value()^M /home/seurer/gcc/git/gcc-test/gcc/cp/module.cc:8068^M 0x104c4e27 trees_in::tree_node(bool)^M /home/seurer/gcc/git/gcc-test/gcc/cp/module.cc:9174^M 0x104d199b module_state::read_cluster(unsigned int)^M /home/seurer/gcc/git/gcc-test/gcc/cp/module.cc:14858^M 0x104d1e83 module_state::load_section(unsigned int, binding_slot*)^M /home/seurer/gcc/git/gcc-test/gcc/cp/module.cc:18125^M 0x104d354f module_state::read_language(bool)^M /home/seurer/gcc/git/gcc-test/gcc/cp/module.cc:18054^M 0x104d39cb direct_import^M /home/seurer/gcc/git/gcc-test/gcc/cp/module.cc:18916^M 0x10559c17 cp_parser_import_declaration^M /home/seurer/gcc/git/gcc-test/gcc/cp/parser.c:13858^M 0x1057fbeb cp_parser_translation_unit^M /home/seurer/gcc/git/gcc-test/gcc/cp/parser.c:4901^M 0x1057fbeb c_parse_file()^M /home/seurer/gcc/git/gcc-test/gcc/cp/parser.c:45231^M 0x1077d69b c_common_parse_file()^M /home/seurer/gcc/git/gcc-test/gcc/c-family/c-opts.c:1218^M Hmmm, on different systems I am seeing different failures. On a power 7 BE system I am seeing: FAIL: g++.dg/modules/xtreme-header-4_c.C -std=c++2a (internal compiler error) FAIL: g++.dg/modules/xtreme-header-4_c.C -std=c++2a (test for excess errors) FAIL: g++.dg/modules/xtreme-header-4_c.C -std=c++2b (internal compiler error) FAIL: g++.dg/modules/xtreme-header-4_c.C -std=c++2b (test for excess errors) commit ded6a1953dd7f43229c44e5d0d17c264338a3f4c Author: Nathan Sidwell <nat...@acm.org> Date: Mon Mar 8 10:01:21 2021 -0800 c++: Incorrect specialization hash table [PR 99285]