From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 99C713858C31; Sat, 4 Mar 2023 15:19:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 99C713858C31 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677943142; bh=c27lajo5qt7WKF96GtRDz3J8pCmTnttkI2lDARgsc2k=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UZwur2IBtSCx5kYxReatq23wBDWavPPoSKzajO93naEccHvnD3uWiYFYNpLXUlwZs cHbfxEypGPXNTWVB1zwqbsidbYqWgruu3Jmwijj0BvuvrhzKCVxP1lXfaJ1LNJ2Dvn LNYYlzOpnr380rif9FioFm6eSr8eC7lmmBaTTguY= From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/106856] [12/13 Regression][OOP] CLASS attribute handling / ICE in gfc_conv_expr_present, at fortran/trans-expr.cc:1977 since r12-4346-geb92cd57a1ebe7cd Date: Sat, 04 Mar 2023 15:19:01 +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-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: anlauf at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106856 --- Comment #7 from anlauf at gcc dot gnu.org --- (In reply to anlauf from comment #6) > Submitted: https://gcc.gnu.org/pipermail/fortran/2023-March/059003.html As discussed in this thread, this version of the patch works for subroutine s1 (x) class(*) :: x allocatable :: x dimension :: x(:) if (allocated (x)) print *, size (x) end subroutine s2 (x) class(*) :: x allocatable :: x(:) if (allocated (x)) print *, size (x) end but still ICEs for the variations / line permutations subroutine s3 (x) class(*) :: x(:) allocatable :: x if (allocated (x)) print *, size (x) end subroutine s4 (x) class(*) :: x dimension :: x(:) allocatable :: x if (allocated (x)) print *, size (x) end I think Mikael's findings in the thread fix this.=