From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 050643858036; Wed, 6 Jan 2021 17:26:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 050643858036 From: "acoplan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/98571] New: ICE in handle_argspec_attribute, at c-family/c-attribs.c:3542 Date: Wed, 06 Jan 2021 17:26:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: acoplan at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jan 2021 17:26:46 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98571 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 for instructions.=