From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A1DE53858CDB; Sat, 18 May 2024 08:03:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A1DE53858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1716019386; bh=p8Z2G5nfUwW8d4S2GB/m+mT0rED6hXTb8unbQMy8Cj4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bafRxriZoe2M75RcGIOoXCwnrOHboUIn2RxqxzR0GJ/kV46NbjPXdb45WyTOCYGYK CTf7yeJSJjta+7IgEsNklUbJUsmLzgWZ/assmO+9RIxdJ27dO/f81vDrqbZ/7IuNwx q6c3DKNEDuv9t3MzyFypyiXzC957B6BiSt5T7XOw= From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/103312] [11/12/13/14/15 Regression] ICE in gfc_find_component since r9-1098-g3cf89a7b992d483e Date: Sat, 18 May 2024 08:03:02 +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 X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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=3D103312 --- Comment #7 from Paul Thomas --- Created attachment 58231 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D58231&action=3Dedit Preliminary fix for this PR I went back to the beginning on this problem, having realised that it is far too early to resolve the compcall of a class argument in gfc_reduce_init_ex= pr. Hence the chunk in expr.cc. The second chunk is (possibly) a bit of a kludge and, I would have thought, should be checked, at very least by checking that the class extends an abstract type. I will come back to this - yard duty ca= lls! A reduced test case, without the module 'example' and no type extension also failed and is now fixed. Also failing in this reduced testcase was: function func (this) result (string) class(bar) :: this character (:), allocatable :: string allocate (character(this%size()) :: string) string =3D repeat ("x", len (string)) end function Again, this is fixed. Finally, the patch even regression tests OK :-) Enough for now. Paul=