https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98571
Bug ID: 98571 Summary: ICE in handle_argspec_attribute, at c-family/c-attribs.c:3542 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- Here is a (presumably low-priority, uninteresting) error-recovery ICE: $ cat test.c int f(int a[.5]); $ aarch64-elf-gcc -c test.c test.c:1:11: error: size of array 'a' has non-integer type 1 | int f(int a[.5]); | ^ test.c:1:1: internal compiler error: in handle_argspec_attribute, at c-family/c-attribs.c:3542 1 | int f(int a[.5]); | ^~~ 0x7f2104 handle_argspec_attribute /home/alecop01/toolchain/src/gcc/gcc/c-family/c-attribs.c:3542 0x6bf2b4 decl_attributes(tree_node**, tree_node*, int, tree_node*) /home/alecop01/toolchain/src/gcc/gcc/attribs.c:724 0x6e5df1 push_parm_decl(c_parm const*, tree_node**) /home/alecop01/toolchain/src/gcc/gcc/c/c-decl.c:5873 0x743ecb c_parser_parms_list_declarator /home/alecop01/toolchain/src/gcc/gcc/c/c-parser.c:4291 0x744021 c_parser_parms_declarator /home/alecop01/toolchain/src/gcc/gcc/c/c-parser.c:4217 0x73ccfb c_parser_direct_declarator_inner /home/alecop01/toolchain/src/gcc/gcc/c/c-parser.c:4130 0x73cfab c_parser_direct_declarator /home/alecop01/toolchain/src/gcc/gcc/c/c-parser.c:3947 0x73cfab c_parser_declarator(c_parser*, bool, c_dtr_syn, bool*) /home/alecop01/toolchain/src/gcc/gcc/c/c-parser.c:3888 0x758e00 c_parser_declaration_or_fndef /home/alecop01/toolchain/src/gcc/gcc/c/c-parser.c:2148 0x762893 c_parser_external_declaration /home/alecop01/toolchain/src/gcc/gcc/c/c-parser.c:1777 0x7631f6 c_parser_translation_unit /home/alecop01/toolchain/src/gcc/gcc/c/c-parser.c:1650 0x7631f6 c_parse_file() /home/alecop01/toolchain/src/gcc/gcc/c/c-parser.c:21935 0x7d51f4 c_common_parse_file() /home/alecop01/toolchain/src/gcc/gcc/c-family/c-opts.c:1211 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.