https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89421
Bug ID: 89421 Summary: [9 Regression] ICE in retrieve_specialization, at cp/pt.c:1245 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 between 20181111 and 20181118 : $ cat z1.cc template < //> auto c = []{ return []{}; }(); $ g++-9-20190217 -c z1.cc z1.cc:2:29: internal compiler error: Segmentation fault 2 | auto c = []{ return []{}; }(); | ^ 0xe32b7f crash_signal ../../gcc/toplev.c:326 0x7c6c75 tree_check(tree_node*, char const*, int, char const*, tree_code) ../../gcc/tree.h:3175 0x7c6c75 retrieve_specialization ../../gcc/cp/pt.c:1245 0x815564 instantiate_decl(tree_node*, bool, bool) ../../gcc/cp/pt.c:24335 0x6ef537 maybe_instantiate_decl ../../gcc/cp/decl2.c:5281 0x6f221c mark_used(tree_node*, int) ../../gcc/cp/decl2.c:5437 0x627aba build_over_call ../../gcc/cp/call.c:7945 0x63b0a8 build_op_call_1 ../../gcc/cp/call.c:4671 0x63b0a8 build_op_call(tree_node*, vec<tree_node*, va_gc, vl_embed>**, int) ../../gcc/cp/call.c:4700 0x83c0b3 finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool, bool, int) ../../gcc/cp/semantics.c:2586 0x78cad6 cp_parser_postfix_expression ../../gcc/cp/parser.c:7373 0x79bc95 cp_parser_unary_expression ../../gcc/cp/parser.c:8459 0x77347f cp_parser_cast_expression ../../gcc/cp/parser.c:9345 0x773c92 cp_parser_binary_expression ../../gcc/cp/parser.c:9446 0x774da9 cp_parser_assignment_expression ../../gcc/cp/parser.c:9742 0x774705 cp_parser_constant_expression ../../gcc/cp/parser.c:10026 0x774d51 cp_parser_initializer_clause ../../gcc/cp/parser.c:22702 0x779737 cp_parser_initializer ../../gcc/cp/parser.c:22642 0x79e683 cp_parser_default_argument ../../gcc/cp/parser.c:22537 0x79e683 cp_parser_parameter_declaration ../../gcc/cp/parser.c:22430