From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by sourceware.org (Postfix) with ESMTPS id DE64E3858D33; Wed, 21 Feb 2024 20:28:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DE64E3858D33 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmx.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DE64E3858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=212.227.17.21 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708547309; cv=none; b=OJWxvNaBax+Qvih4lPzAE8mnEKu4pSz/9nPS8BxRoXSqCtGQUqGlNuetroPWEX7NQ5g8A59Xp09OLHpvycwFkYJVyVZ4/CazIDARwLfqXPI+5FQ6ftGVKDGUjVBqeM2WbwJrFuCfLVSIwqSjewosXjOYdtsu4X/FmGIRZYWWS6Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708547309; c=relaxed/simple; bh=9uL6OOXJ4NvSZQ3wIFYy1an5tjOM+HF7u7BIXvGU/z4=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=QYp+vJO8hEAfsCY0GQP/h/S5m9JohgvLy1ZeZ0PIpbXw+pEo0MOIwKxADSYqg8KQ04UfIqmjjqzH4jBr3ybcucAup5vfcBUTaWLmQGVuXEM3R8+wqIcjxLhIRdOoHnZzM1tLtp28ghnG8ZhBqF0UnLV7YqR8hKc6W3abDko3+Ro= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1708547300; x=1709152100; i=anlauf@gmx.de; bh=9uL6OOXJ4NvSZQ3wIFYy1an5tjOM+HF7u7BIXvGU/z4=; h=X-UI-Sender-Class:Date:Subject:To:References:From:In-Reply-To; b=Cv7oWA7HJxpDEuh4b9fMvLn6OqoWRS2jMH10NZ/SPI4V0XzZd6z9wKcF8iYakNpD xagnn3Rzdr9q185hg2VWKbYmTlxUDxyhO3GnT8rmZaUu8cD6KfH4IOKRNmAOPML+j aIkMz3fVkb2lf0Ge00r9r/KbZ6+nGEQOb+mkDmt1fbYutyxJRw4lLYmmn0BcTtkVB V35pBl1Tz4C8vwbpAQhbPcZY0tZTw1+SAzNMoTP9p0BJ6q1air31dXd+CUu3fl3Hs STzHpb4abp0tjbEMb5i5SHSpiPy6eoOvXp0wTag9LO2NdXMDvcmspwghIvUvwMhDX OuUjwQ8Lk77A/T8GRg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.178.29] ([79.232.145.107]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N33ET-1qwMDx1v4P-013ODy; Wed, 21 Feb 2024 21:28:20 +0100 Message-ID: <3444d912-2e79-4e16-a425-79810d161ebb@gmx.de> Date: Wed, 21 Feb 2024 21:28:16 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] Fix fortran/PR114024 To: Jerry D , sgk@troutmask.apl.washington.edu, fortran@gcc.gnu.org, gcc-patches@gcc.gnu.org Newsgroups: gmane.comp.gcc.patches,gmane.comp.gcc.fortran References: <29ba08a7-8218-4591-8c3f-36c17090e497@gmail.com> Content-Language: en-US From: Harald Anlauf In-Reply-To: <29ba08a7-8218-4591-8c3f-36c17090e497@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:BL2OJMuJToHg+tiPImygAF+DogW60XvyzeSHE6VJYrpr+D9kb2H OCNHthIe12nNEJJHES9DcPM5dAtNLAUK1CSnW2iBwZliMBTeDa65DcJWeA/LSyHWghq/YNn 6k53qnDvRFwxdOZ+Jbez/iT8XZF/sPzhuVocQTL+zPwqvef9idnLHaLEI261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_SHORT,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2/21/24 20:41, Jerry D wrote: > On 2/21/24 10:30 AM, Steve Kargl wrote: >> I have attached a patch to PR114024, see >> >> https://gcc.gnu.org/pipermail/gcc-bugs/2024-February/854651.html >> >> The patch contains a new testcase and passes regression >> testing on x86_64-*-freebsd.=C2=A0 Could someone castr an eye >> over the patch and commit it? >> > > Hi Steve, > > I looked it over and looks reasonable.=C2=A0 I will try to apply it next= few > days and test here. If OK, I will commit. > > Jerry > Actually the patch has two issues: - a minor one: a new front-end memleak which can be avoided by using either gfc_replace_expr (see its other uses) Hint: try valgrind on f951 - it still fails on the following code, because the traversal of the refs is incomplete / wrong: program foo implicit none complex :: cmp(3) real, pointer :: pp(:) class(*), allocatable :: uu(:) type t real :: re real :: im end type t type u type(t) :: tt(3) end type u type(u) :: cc cmp =3D (3.45,6.78) cc% tt% re =3D cmp% re cc% tt% im =3D cmp% im allocate (pp, source =3D cc% tt% im) ! ICE print *, pp allocate (uu, source =3D cc% tt% im) ! ICE end This still crashes for me for the indicated cases. Harald