https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84059
Bug ID: 84059 Summary: [8 Regression] ICE in ix86_get_function_versions_dispatcher, at config/i386/i386.c:32429 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: --- Starting from Nathan's commit r251316 we ICE on: $ cat ice.ii template < typename > struct a { int __attribute__((target("arch=ivybridge"))) c(int); int __attribute__((target("default"))) c(int); }; void d() { a< double > b; b.c(2); } $ g++ ice.ii ice.ii: In function ‘void d()’: ice.ii:7:8: internal compiler error: in ix86_get_function_versions_dispatcher, at config/i386/i386.c:32429 b.c(2); ^ 0x1131c53 ix86_get_function_versions_dispatcher ../../gcc/config/i386/i386.c:32429 0x60dd5d get_function_version_dispatcher(tree_node*) ../../gcc/cp/call.c:7479 0x6138e0 build_over_call ../../gcc/cp/call.c:8191 0x616858 build_new_method_call_1 ../../gcc/cp/call.c:9274 0x616858 build_new_method_call(tree_node*, tree_node*, vec<tree_node*, va_gc, vl_embed>**, tree_node*, int, tree_node**, int) ../../gcc/cp/call.c:9343 0x776467 cp_parser_postfix_expression ../../gcc/cp/parser.c:7207 0x776d3d cp_parser_unary_expression ../../gcc/cp/parser.c:8281 0x754939 cp_parser_cast_expression ../../gcc/cp/parser.c:9049 0x7551a7 cp_parser_binary_expression ../../gcc/cp/parser.c:9150 0x756b54 cp_parser_assignment_expression ../../gcc/cp/parser.c:9437 0x757338 cp_parser_expression ../../gcc/cp/parser.c:9606 0x7593b8 cp_parser_expression_statement ../../gcc/cp/parser.c:11075 0x75f5cf cp_parser_statement ../../gcc/cp/parser.c:10879 0x760e20 cp_parser_statement_seq_opt ../../gcc/cp/parser.c:11218 0x760ef7 cp_parser_compound_statement ../../gcc/cp/parser.c:11172 0x779c48 cp_parser_function_body ../../gcc/cp/parser.c:21710 0x779c48 cp_parser_ctor_initializer_opt_and_function_body ../../gcc/cp/parser.c:21747 0x77a3e0 cp_parser_function_definition_after_declarator ../../gcc/cp/parser.c:26648 0x77b0be cp_parser_function_definition_from_specifiers_and_declarator ../../gcc/cp/parser.c:26564 0x77b0be cp_parser_init_declarator ../../gcc/cp/parser.c:19436