From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7D48A385482D; Mon, 1 Mar 2021 17:05:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7D48A385482D From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/99324] New: ICE in mark_addressable, at gimple-expr.c:918 Date: Mon, 01 Mar 2021 17:05:49 +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: gscfq@t-online.de 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: Mon, 01 Mar 2021 17:05:49 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99324 Bug ID: 99324 Summary: ICE in mark_addressable, at gimple-expr.c:918 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Affects versions down to r6, with missing ";" at /// : $ cat z1.c #include void f (int x, ...) { va_list a; va_arg (a, int); int b () ///; int c[va_arg (a, int)]; va_end (a); return; } $ gcc-11-20210228 -c z1.c z1.c: In function 'b': z1.c:7:3: internal compiler error: Segmentation fault 7 | int c[va_arg (a, int)]; | ^~~ 0xb5eeff crash_signal ../../gcc/toplev.c:327 0x8c6733 mark_addressable(tree_node*) ../../gcc/gimple-expr.c:918 0x6ce03c build_va_arg(unsigned int, tree_node*, tree_node*) ../../gcc/c-family/c-common.c:4630 0x6751b6 c_parser_postfix_expression ../../gcc/c/c-parser.c:9141 0x67e012 c_parser_unary_expression ../../gcc/c/c-parser.c:8224 0x67f03f c_parser_cast_expression ../../gcc/c/c-parser.c:8066 0x67f2f9 c_parser_binary_expression ../../gcc/c/c-parser.c:7869 0x680305 c_parser_conditional_expression ../../gcc/c/c-parser.c:7592 0x680861 c_parser_expr_no_commas ../../gcc/c/c-parser.c:7507 0x67d1f6 c_parser_direct_declarator_inner ../../gcc/c/c-parser.c:4095 0x694483 c_parser_declaration_or_fndef ../../gcc/c/c-parser.c:2148 0x695709 c_parser_declaration_or_fndef ../../gcc/c/c-parser.c:2498 0x693bb9 c_parser_compound_statement_nostart ../../gcc/c/c-parser.c:5700 0x693ff3 c_parser_compound_statement ../../gcc/c/c-parser.c:5597 0x6958a8 c_parser_declaration_or_fndef ../../gcc/c/c-parser.c:2539 0x69c717 c_parser_external_declaration ../../gcc/c/c-parser.c:1777 0x69d239 c_parser_translation_unit ../../gcc/c/c-parser.c:1650 0x69d239 c_parse_file() ../../gcc/c/c-parser.c:21984 0x6ed0a2 c_common_parse_file() ../../gcc/c-family/c-opts.c:1218=