https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90997
Bug ID: 90997 Summary: [9/10 Regression] ICE in tsubst_copy_and_build, at cp/pt.c:18480 Product: gcc Version: 10.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 20180527 and 20180610 : $ cat z1.cc template<class> void f () { __builtin_memset (0, 0, int(0.)); } $ g++-8 -c z1.cc $ g++-10-20180527 -c z1.cc $ $ g++-10-20190623 -c z1.cc z1.cc: In function 'void f()': z1.cc:2:34: internal compiler error: in tsubst_copy_and_build, at cp/pt.c:18480 2 | { __builtin_memset (0, 0, int(0.)); } | ^ 0x6e4601 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) ../../gcc/cp/pt.c:18480 0x619bfc fold_non_dependent_expr_template ../../gcc/cp/constexpr.c:5670 0x6630ac fold_for_warn(tree_node*) ../../gcc/cp/expr.c:372 0x7a8c84 warn_for_memset(unsigned int, tree_node*, tree_node*, int) ../../gcc/c-family/c-warn.c:2060 0x710734 finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool, bool, int) ../../gcc/cp/semantics.c:2580 0x6b7b68 cp_parser_postfix_expression ../../gcc/cp/parser.c:7384 0x6c4235 cp_parser_unary_expression ../../gcc/cp/parser.c:8470 0x6a0c9f cp_parser_cast_expression ../../gcc/cp/parser.c:9355 0x6a1472 cp_parser_binary_expression ../../gcc/cp/parser.c:9457 0x6a21e9 cp_parser_assignment_expression ../../gcc/cp/parser.c:9754 0x6a2472 cp_parser_expression ../../gcc/cp/parser.c:9923 0x6a5394 cp_parser_expression_statement ../../gcc/cp/parser.c:11524 0x6b16e5 cp_parser_statement ../../gcc/cp/parser.c:11320 0x6b2540 cp_parser_statement_seq_opt ../../gcc/cp/parser.c:11667 0x6b25ef cp_parser_compound_statement ../../gcc/cp/parser.c:11621 0x6c89c8 cp_parser_function_body ../../gcc/cp/parser.c:22645 0x6c89c8 cp_parser_ctor_initializer_opt_and_function_body ../../gcc/cp/parser.c:22696 0x6c8cd6 cp_parser_function_definition_after_declarator ../../gcc/cp/parser.c:28010 0x6c9993 cp_parser_function_definition_from_specifiers_and_declarator ../../gcc/cp/parser.c:27926 0x6c9993 cp_parser_init_declarator ../../gcc/cp/parser.c:20282