From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CCCFE3857825; Tue, 22 Mar 2022 13:58:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CCCFE3857825 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/102314] [12 Regression] ICE in verify_ssa, at tree-ssa.c:1076 since r12-1319-gd4d38135b3137f1d Date: Tue, 22 Mar 2022 13:58:50 +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: 12.0 X-Bugzilla-Keywords: ice-on-valid-code, openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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: Tue, 22 Mar 2022 13:58:50 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102314 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org --- Comment #3 from Jakub Jelinek --- I think those types: character(kind=3D1)[1:.y] * y; don't really make sense for the character(:) allocatables, I think much bet= ter would be to leave the TYPE_MAX_VALUE from TYPE_DOMAIN out, making it [1:]. [1:.y] nicely expresses the intent, in most places y (if it is not NULL) sh= ould point to [1:.y] array. But if we emit a DECL_EXPR for it, it will be just wrong, the middle-end expects the C/C++ VLA behavior, the size is computed once (w= hen encountering the DECL_EXPR), then the VLA is allocated with it and that is = the size it has from that point on. The deferred-length (is that the right term) arrays work differently from t= his though, the length can be changed at any time. So the VLA length is always determined from the current value of the .y variable (except in the short s= pots where that is updated and the var not yet reallocated).=