From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4848A3858D28; Wed, 29 Dec 2021 12:10:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4848A3858D28 From: "muecker at gwdg dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/103770] [11 Regression] ICE related to VLA Date: Wed, 29 Dec 2021 12:10:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 11.2.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: muecker at gwdg dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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, 29 Dec 2021 12:10:44 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103770 --- Comment #3 from Martin Uecker --- Here is another example which fails on armel extern _Complex float g(int N, int dims[N]); void f(void) { int dims[1]; _Complex float val =3D g(1, dims); } during RTL pass: expand BUG.c: In function 'f': BUG.c:10:30: internal compiler error: Segmentation fault 10 | _Complex float val =3D g(1, dims); | ^~~~~~~~~~ 0xb1393f crash_signal ../../src/gcc/toplev.c:327 0x708398 get_size_range(range_query*, tree_node*, gimple*, tree_node**, int) ../../src/gcc/calls.c:1274 0x70c4d4 get_size_range(range_query*, tree_node*, gimple*, tree_node**, int) ../../src/gcc/calls.c:1266 0x70c4d4 get_size_range(tree_node*, tree_node**, int) ../../src/gcc/calls.c:1401 0x70c4d4 maybe_warn_rdwr_sizes ../../src/gcc/calls.c:2034 0x70dcb1 initialize_argument_information ../../src/gcc/calls.c:2626 0x70dcb1 expand_call(tree_node*, rtx_def*, int) ../../src/gcc/calls.c:4010 0x8210ce expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../src/gcc/expr.c:11287 0x82a9ce expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifi= er, rtx_def**, bool) ../../src/gcc/expr.c:8519 0x82a9ce store_expr(tree_node*, rtx_def*, int, bool, bool) ../../src/gcc/expr.c:5886 0x82be69 expand_assignment(tree_node*, tree_node*, bool) ../../src/gcc/expr.c:5622 0x720bf9 expand_call_stmt ../../src/gcc/cfgexpand.c:2838 0x720bf9 expand_gimple_stmt_1 ../../src/gcc/cfgexpand.c:3871 0x720bf9 expand_gimple_stmt ../../src/gcc/cfgexpand.c:4035 0x726b97 expand_gimple_basic_block ../../src/gcc/cfgexpand.c:6077 0x726b97 execute ../../src/gcc/cfgexpand.c:6761 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. arm-linux-gnueabi-gcc (Debian 11.2.0-9) 11.2.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.=