https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86218
Bug ID: 86218 Summary: [9 Regression] ICE in compare_ics, at cp/call.c:9769 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Changed recently, between 20180603 and 20180610 : $ cat z1.cc template <int a> void f (const char (&)[a]) { } void f (int) { } template <class...a> void g () { f ({2.0}); } $ gcc-9-20180603 -c z1.cc $ $ gcc-9-20180617 -c z1.cc z1.cc: In function 'void g()': z1.cc:8:11: internal compiler error: Segmentation fault f ({2.0}); ^ 0xbabeff crash_signal ../../gcc/toplev.c:324 0x632448 compare_ics ../../gcc/cp/call.c:9769 0x635552 joust ../../gcc/cp/call.c:10158 0x636433 joust ../../gcc/cp/call.c:10094 0x636433 tourney ../../gcc/cp/call.c:10560 0x63ccf8 perform_overload_resolution ../../gcc/cp/call.c:4209 0x63e0d2 build_new_function_call(tree_node*, vec<tree_node*, va_gc, vl_embed>**, int) ../../gcc/cp/call.c:4274 0x74ae15 finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool, bool, int) ../../gcc/cp/semantics.c:2544 0x6f8ced cp_parser_postfix_expression ../../gcc/cp/parser.c:7219 0x700507 cp_parser_unary_expression ../../gcc/cp/parser.c:8295 0x6e0e72 cp_parser_cast_expression ../../gcc/cp/parser.c:9063 0x6e1511 cp_parser_binary_expression ../../gcc/cp/parser.c:9164 0x6e1bc3 cp_parser_assignment_expression ../../gcc/cp/parser.c:9459 0x6e2264 cp_parser_expression ../../gcc/cp/parser.c:9628 0x6e4d94 cp_parser_expression_statement ../../gcc/cp/parser.c:11106 0x6ec8b7 cp_parser_statement ../../gcc/cp/parser.c:10910 0x6ed5b7 cp_parser_statement_seq_opt ../../gcc/cp/parser.c:11249 0x6ed68f cp_parser_compound_statement ../../gcc/cp/parser.c:11203 0x6fed01 cp_parser_function_body ../../gcc/cp/parser.c:21886 0x6fed01 cp_parser_ctor_initializer_opt_and_function_body ../../gcc/cp/parser.c:21921