https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84453
Bug ID: 84453 Summary: [8 Regression] ICE in build_type_attribute_qual_variant, at attribs.c:1166 Product: gcc Version: unknown Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org Target Milestone: --- I see it on ppc64le cross compiler: $ ppc64le-linux-gnu-g++ /home/marxin/Programming/gcc/gcc/testsuite/g++.dg/cpp0x/ref-qual14.C -c -mlongcall /home/marxin/Programming/gcc/gcc/testsuite/g++.dg/cpp0x/ref-qual14.C:9:44: internal compiler error: in build_type_attribute_qual_variant, at attribs.c:1166 struct target_class<Ret (Class::*)(Args...)> ^ 0x838d35 build_type_attribute_qual_variant(tree_node*, tree_node*, int) .././../gcc/attribs.c:1166 0x7f55ed cp_build_type_attribute_variant(tree_node*, tree_node*) .././../gcc/cp/tree.c:4628 0x803e29 strip_typedefs(tree_node*, bool*) .././../gcc/cp/tree.c:1620 0x8042e0 strip_typedefs(tree_node*, bool*) .././../gcc/cp/tree.c:1406 0x8044fd strip_typedefs(tree_node*, bool*) .././../gcc/cp/tree.c:1421 0x7486ec canonicalize_type_argument .././../gcc/cp/pt.c:7515 0x796383 coerce_template_parms .././../gcc/cp/pt.c:8324 0x78b92a lookup_template_class_1 .././../gcc/cp/pt.c:8860 0x78b92a lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*, int, int) .././../gcc/cp/pt.c:9209 0x7d01ad finish_template_type(tree_node*, tree_node*, int) .././../gcc/cp/semantics.c:3183 0x71fb74 cp_parser_template_id .././../gcc/cp/parser.c:15824 0x71fd9f cp_parser_class_name .././../gcc/cp/parser.c:22344 0x72dffe cp_parser_qualifying_entity .././../gcc/cp/parser.c:6574 0x72dffe cp_parser_nested_name_specifier_opt .././../gcc/cp/parser.c:6260 0x727cd5 cp_parser_class_head .././../gcc/cp/parser.c:22832 0x727cd5 cp_parser_class_specifier_1 .././../gcc/cp/parser.c:22428 0x729ab1 cp_parser_class_specifier .././../gcc/cp/parser.c:22742 0x729ab1 cp_parser_type_specifier .././../gcc/cp/parser.c:16748 0x737c86 cp_parser_decl_specifier_seq .././../gcc/cp/parser.c:13606 0x73cf25 cp_parser_single_declaration .././../gcc/cp/parser.c:27054 Please submit a full bug report, And I also see it on x86_64-linux-gnu, but I'll need some time to reduce a test-case.