https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89715
Bug ID: 89715 Summary: ICE deep in C++ frontend building g++.dg/cpp0x/cond1.C Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: segher at gcc dot gnu.org Target Milestone: --- With a compiler bootstrapped with --with-cpu=power7 I get spawn -ignore SIGHUP /home/segher/build/tot/gcc/testsuite/g++13/../../xg++ -B/ho me/segher/build/tot/gcc/testsuite/g++13/../../ /home/segher/src/gcc/gcc/testsuit e/g++.dg/cpp0x/alias-decl-64.C -fno-diagnostics-show-caret -fno-diagnostics-show -line-numbers -fdiagnostics-color=never -nostdinc++ -I/home/segher/build/tot/pow erpc64-unknown-linux-gnu/32/libstdc++-v3/include/powerpc64-unknown-linux-gnu -I/ home/segher/build/tot/powerpc64-unknown-linux-gnu/32/libstdc++-v3/include -I/hom e/segher/src/gcc/libstdc++-v3/libsupc++ -I/home/segher/src/gcc/libstdc++-v3/incl ude/backward -I/home/segher/src/gcc/libstdc++-v3/testsuite/util -fmessage-length =0 -std=c++17 -pedantic-errors -Wno-long-long -S -m32 -o alias-decl-64.s /home/segher/src/gcc/gcc/testsuite/g++.dg/cpp0x/alias-decl-64.C:14:37: internal compiler error: canonical types differ for identical types 'A<#'using_decl' not supported by dump_expr#<expression error> >' and 'A<#'using_decl' not supported by dump_expr#<expression error> >' 0x1050d403 comptypes(tree_node*, tree_node*, int) /home/segher/src/gcc/gcc/cp/typeck.c:1479 0x103eb56f template_args_equal(tree_node*, tree_node*, bool) /home/segher/src/gcc/gcc/cp/pt.c:8732 0x103eb56f template_args_equal(tree_node*, tree_node*, bool) /home/segher/src/gcc/gcc/cp/pt.c:8675 0x103eae0f comp_template_args(tree_node*, tree_node*, tree_node**, tree_node**, bool) /home/segher/src/gcc/gcc/cp/pt.c:8780 0x103eae0f comp_template_args(tree_node*, tree_node*, tree_node**, tree_node**, bool) /home/segher/src/gcc/gcc/cp/pt.c:8760 0x10400b1f spec_hasher::equal(spec_entry*, spec_entry*) /home/segher/src/gcc/gcc/cp/pt.c:1701 0x1048a4cf hash_table<spec_hasher, xcallocator>::find_with_hash(spec_entry* const&, unsigned int) /home/segher/src/gcc/gcc/hash-table.h:850 0x10456157 lookup_template_class_1 /home/segher/src/gcc/gcc/cp/pt.c:9388 0x10456157 lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*, int, int) /home/segher/src/gcc/gcc/cp/pt.c:9715 0x104af04b finish_template_type(tree_node*, tree_node*, int) /home/segher/src/gcc/gcc/cp/semantics.c:3289 0x103ab2f7 cp_parser_template_id /home/segher/src/gcc/gcc/cp/parser.c:16423 0x103ab6fb cp_parser_class_name /home/segher/src/gcc/gcc/cp/parser.c:23212 0x103afd77 cp_parser_qualifying_entity /home/segher/src/gcc/gcc/cp/parser.c:6693 0x103afd77 cp_parser_nested_name_specifier_opt /home/segher/src/gcc/gcc/cp/parser.c:6379 0x103b090b cp_parser_nested_name_specifier /home/segher/src/gcc/gcc/cp/parser.c:6619 0x103b964f cp_parser_elaborated_type_specifier /home/segher/src/gcc/gcc/cp/parser.c:18261 0x1039f113 cp_parser_type_specifier /home/segher/src/gcc/gcc/cp/parser.c:17399 0x103a0623 cp_parser_decl_specifier_seq /home/segher/src/gcc/gcc/cp/parser.c:14066 0x103c8b6f cp_parser_parameter_declaration /home/segher/src/gcc/gcc/cp/parser.c:22300 0x103c967f cp_parser_parameter_declaration_list /home/segher/src/gcc/gcc/cp/parser.c:22123 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. compiler exited with status 1 This didn't happen a few months ago; I don't know exactly when it did start.