https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108542
Bug ID: 108542 Summary: [13 Regression] ICE in instantiate_type, at cp/class.cc:8833 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Started between 20221106 and 20221120 : $ cat z1.cc template<typename T> void f (T n) {} [[pre: f]] $ g++-13-20230122 -c z1.cc z1.cc:3:8: internal compiler error: in instantiate_type, at cp/class.cc:8833 3 | [[pre: f]] | ^ 0x7d34ef instantiate_type(tree_node*, tree_node*, int) ../../gcc/cp/class.cc:8833 0x7b2c27 implicit_conversion_error ../../gcc/cp/call.cc:4658 0x7c05bc perform_implicit_conversion_flags(tree_node*, tree_node*, int, int) ../../gcc/cp/call.cc:13366 0x97e5cc contextual_conv_bool(tree_node*, int) ../../gcc/cp/typeck.cc:6952 0x97e5cc condition_conversion(tree_node*) ../../gcc/cp/typeck.cc:6961 0x81665a grok_contract(tree_node*, tree_node*, tree_node*, cp_expr, unsigned int) ../../gcc/cp/contracts.cc:783 0x8f0a2f cp_parser_contract_attribute_spec ../../gcc/cp/parser.cc:29740 0x8f0a2f cp_parser_std_attribute_spec ../../gcc/cp/parser.cc:29886 0x8f0a2f cp_parser_std_attribute_spec_seq ../../gcc/cp/parser.cc:30011 0x8f0f51 cp_parser_attributes_opt ../../gcc/cp/parser.cc:28909 0x8e11e7 cp_parser_decl_specifier_seq ../../gcc/cp/parser.cc:15734 0x8e1aa1 cp_parser_simple_declaration ../../gcc/cp/parser.cc:15217 0x90c638 cp_parser_declaration ../../gcc/cp/parser.cc:15030 0x90d010 cp_parser_translation_unit ../../gcc/cp/parser.cc:5090 0x90d010 c_parse_file() ../../gcc/cp/parser.cc:49400 0x9f4e01 c_common_parse_file() ../../gcc/c-family/c-opts.cc:1248