From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 72B953871FAF; Tue, 6 Dec 2022 18:08:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 72B953871FAF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670350123; bh=T0m15Thkia0Ej8CP6np640TkXo6iQoiLREqv/0ACKiQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xXtFcFHaP3A/o2dBwpU39KSbrSIhzh+gTf4BNTRC81a+p/QZlTiZZXe6l5vP+THIe QnifNxPhFt2b8JlcfRWPmauvHCatN/frstYDMTelsZ1wIREcbH+QOLNE1Ey60LM3Nx aD8iBkmHR/3FM+uFy/3Oye6IJAUxeM/e60+7Qy+E= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/107996] ICE in gfc_walk_array_ref, at fortran/trans-array.cc:11429 Date: Tue, 06 Dec 2022 18:08:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-invalid-code, rejects-valid 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: keywords 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107996 G. Steinmetz changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-invalid-code, | |rejects-valid --- Comment #1 from G. Steinmetz --- Moreover, this valid code should print 'a' : $ cat z2.f90 program p associate (a =3D> [1]) print *, [character(size(a(:))) :: 'a'] end associate end $ cat z3.f90 program p associate (a =3D> [1]) print *, [character(size(a)) :: 'a'] end associate end $ gfortran-13-20221204 -c z3.f90 z3.f90:3:42: 3 | print *, [character(size(a)) :: 'a'] | ^ Error: size of variable 'A.1' is too large=