https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97860
Bug ID: 97860 Summary: [11 Regression] ICE in handle_argspec_attribute, at c-family/c-attribs.c:3244 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Changed somewhere between 20200823 and 20201004 : $ cat z1.c void f (int n) { typedef int T[0]; typedef T a[n]; void *g (a); } $ gcc-10-20201114 -c z1.c $ $ gcc-11-20201115 -c z1.c z1.c: In function 'f': z1.c:5:3: internal compiler error: in handle_argspec_attribute, at c-family/c-attribs.c:3244 5 | void *g (a); | ^~~~ 0x6f34c9 handle_argspec_attribute ../../gcc/c-family/c-attribs.c:3244 0x6299f1 decl_attributes(tree_node**, tree_node*, int, tree_node*) ../../gcc/attribs.c:724 0x642595 push_parm_decl(c_parm const*, tree_node**) ../../gcc/c/c-decl.c:5871 0x67788c c_parser_parms_list_declarator ../../gcc/c/c-parser.c:4300 0x677be8 c_parser_parms_declarator ../../gcc/c/c-parser.c:4226 0x671163 c_parser_direct_declarator_inner ../../gcc/c/c-parser.c:4139 0x671583 c_parser_declarator(c_parser*, bool, c_dtr_syn, bool*) ../../gcc/c/c-parser.c:3889 0x6882b7 c_parser_declaration_or_fndef ../../gcc/c/c-parser.c:2148 0x6879e9 c_parser_compound_statement_nostart ../../gcc/c/c-parser.c:5709 0x687e23 c_parser_compound_statement ../../gcc/c/c-parser.c:5606 0x6896b1 c_parser_declaration_or_fndef ../../gcc/c/c-parser.c:2543 0x690297 c_parser_external_declaration ../../gcc/c/c-parser.c:1777 0x690db9 c_parser_translation_unit ../../gcc/c/c-parser.c:1650 0x690db9 c_parse_file() ../../gcc/c/c-parser.c:21882 0x6dfb82 c_common_parse_file() ../../gcc/c-family/c-opts.c:1196