https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113674
Bug ID: 113674 Summary: [[____attr____]] causes internal compiler error: in decl_attributes, at attribs.cc:776 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- [[____noreturn____]] int g (int i) { return i; } causes (both cc1 and cc1plus): q.C:2:9: internal compiler error: in decl_attributes, at attribs.cc:776 2 | g (int i) | ^ 0x1209fe5 decl_attributes(tree_node**, tree_node*, int, tree_node*) /home/mpolacek/src/gcc/gcc/attribs.cc:776 0xeed5cd cplus_decl_attributes(tree_node**, tree_node*, int) /home/mpolacek/src/gcc/gcc/cp/decl2.cc:1880 0xeb8604 grokfndecl /home/mpolacek/src/gcc/gcc/cp/decl.cc:10973 0xec6a60 grokdeclarator(cp_declarator const*, cp_decl_specifier_seq*, decl_context, int, tree_node**) /home/mpolacek/src/gcc/gcc/cp/decl.cc:15063 0xed73ad start_function(cp_decl_specifier_seq*, cp_declarator const*, tree_node*) /home/mpolacek/src/gcc/gcc/cp/decl.cc:18159 0x10563ef cp_parser_function_definition_from_specifiers_and_declarator /home/mpolacek/src/gcc/gcc/cp/parser.cc:32573 0x1042ac8 cp_parser_init_declarator /home/mpolacek/src/gcc/gcc/cp/parser.cc:23356 0x1034027 cp_parser_simple_declaration /home/mpolacek/src/gcc/gcc/cp/parser.cc:15890 0x1033b9d cp_parser_block_declaration /home/mpolacek/src/gcc/gcc/cp/parser.cc:15709 0x103379d cp_parser_declaration /home/mpolacek/src/gcc/gcc/cp/parser.cc:15563 0x103387d cp_parser_toplevel_declaration /home/mpolacek/src/gcc/gcc/cp/parser.cc:15584 0x101ac64 cp_parser_translation_unit /home/mpolacek/src/gcc/gcc/cp/parser.cc:5276 0x1092a8f c_parse_file() /home/mpolacek/src/gcc/gcc/cp/parser.cc:51174 0x12a67d8 c_common_parse_file() /home/mpolacek/src/gcc/gcc/c-family/c-opts.cc:1301