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 AFDEC385703D; Fri, 7 Jul 2023 18:23:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AFDEC385703D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmx.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1688754236; x=1689359036; i=anlauf@gmx.de; bh=goyOgLaTVaQTq7pYFwRvtD4UlNQ1PnwLEgs14I76NVI=; h=X-UI-Sender-Class:Date:Subject:To:References:From:In-Reply-To; b=PGW9eqfzQBe6pGxOl7wVuJvauT5gHfLo1c3WTB61xHZFnu03d3ZAOycLeRTBrsltzQNkLRx hSCHaFHwpCAblvT6xR32IUOdNt2/b4G61Z8GUCUB/GaVN4Ucmcb1dCq2gBInidSyK+gDJr/wR p1vfUc0o7oD/TEzjfCnd05neAiVS4gdSnkBLEcvCx6HCCa/P0qyizJqGn9jhpwxXd+luMdtmp KPK2weP4cNVCg79WxnRhvHF8W2TRmnlUO5cNeZH1aaPFhrdQR9VvTHcvYCLPT7i8w2+neiUW2 FaGVmxVg43zWvOFrLSoaBbeR/hpfLiqvaNe6y9Om+nOilDN/RMxw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.178.29] ([93.207.83.196]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M72sJ-1qLwiS3e2R-008b1p; Fri, 07 Jul 2023 20:23:55 +0200 Message-ID: Date: Fri, 7 Jul 2023 20:23:55 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH] Fortran: fixes for procedures with ALLOCATABLE,INTENT(OUT) arguments [PR92178] To: Mikael Morin , fortran , gcc-patches Newsgroups: gmane.comp.gcc.patches,gmane.comp.gcc.fortran References: <5a5306ae-0db1-c7e2-e744-a3beced17636@orange.fr> <3adc2904-9876-74d6-2b5d-3cc1896866c3@gmx.de> <3e31cc66-b7ae-adb0-f1a8-18b8bcc11c46@orange.fr> Content-Language: en-US From: Harald Anlauf In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:FoasmrckzQ3/8FR/WF5I/DbgtZrvRHkRaunYeyFQ3ZoXuHXGLPP lGBtqebEuU/jHJlqqLR1Cn7G2bDpmaajQeqhenlwKtiJCDY481xyR5xtb4JNNBH4KmTPpmN T24KApBNz9h1vTvMheQ3hdPQWl1kVskMWXnPkNr1Tv03CrPO1lJLqlQtcRFJ9+SMKPVmIpD M7hzCUnmFRcWAq3zR7jMQ== UI-OutboundReport: notjunk:1;M01:P0:pshrm9/AcuA=;8wXaRdDmO0rXikMaDnqSrc+Wzwj lP16bZbA9jNoQvBYxzf/YU2KIwjeWDX43jVY8xsOzxNfm2npXxaK/lGgfwevpliS4utB3+6d5 ehRmfoqDWvKcDlYotujjiHg4osBW8rHwDUxiarTf4UQm+Y251MvXUZdiqyC5E0ilA7wzX2y5N Vxr5pnSRAYfBZ5oB17AveMjk3wE/iQ09iPpnDforvUgH8kz4t798xvjDSD6bfuVoMmUOKZhh/ h80rjBz6ZPBk5rEZX76HHBjGpzEDcCdYjotbQado4ws55HRq9RnG7XKuaR6B3ra7gAsAorNsf ZmwRDY1Bu6bybTB+vhkoFz6hag1PorK1W5ZejKKd881ZI8785J/GrG7iINO/TG7lasu+B4W4A AHNGypJyXmiVvh/Au5DfFSIsYnslzJld7DEbfssXA557Jry6JdS6jD44jnBq4FenHhaeSuUBW Y8xiOt41Rb4qoq6fXzIxkF9ylEbEjQdYhLCJSV1fU2umlJUuRFUmWrvwxEciO926RkRijmW92 qcgq0O0lzhKdGPhPrbNBHD3vKZOBD8O5PnqZazL2xu4NiaGNp6FLw+K1dvVLJbWUlsXmYlgk+ 8GIx1D+2dmglASMtPomkpbxb44/L82HLWEE4YhCS4Wmqy57/jxql50+MEapnZqSMo5K8nohrc +vA3VgU0AchWEeka/MZtB9RZV5fduxW7CNGEfSc+JFE6yy83uWXH7hHLlsrqnZvNa8OkA1452 Uu+vtFbPiVS1hiGfOXk6O7L0XUvw9us0440jqHVG13bOGwRwcZ8vWPUhHGRQOchlabLmcqFc7 LEDPmC1LAC/KQsQehMeaqZ4Kbgv1RQ+cXnO4kWhAwu/aMeFVVmXJvOOilJIvVVJyqh9FNXWwL cSrMp8n8u44zqg3Sz+EshAb0vythN5buisEOMETPzF3P8MOUQwslM0O8hnGbxvTf4xQdNUZc0 HHjwAdc3a43c9pBCAsVyPrWcw4s= X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,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: Hi Mikael, Am 07.07.23 um 14:21 schrieb Mikael Morin: > I'm attaching what I have (lightly) tested so far, which doesn't work. > It seems gfc_conv_class_to_class reevaluates part of the original > expression, which is not correct after deallocation. this looks much more elegant than my attempt that passed an additional argument to gfc_conv_class_to_class, to achieve what your patch does. > Will have a look again tonight. Great. Harald From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) by sourceware.org (Postfix) with ESMTPS id AA32B384C6B7 for ; Fri, 7 Jul 2023 18:24:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AA32B384C6B7 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=gmx.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=m.gmane-mx.org Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1qHq7c-0004u8-7D for gcc-patches@gcc.gnu.org; Fri, 07 Jul 2023 20:24:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gcc-patches@gcc.gnu.org From: Harald Anlauf Subject: Re: [PATCH] Fortran: fixes for procedures with ALLOCATABLE,INTENT(OUT) arguments [PR92178] Date: Fri, 7 Jul 2023 20:23:55 +0200 Message-ID: References: <5a5306ae-0db1-c7e2-e744-a3beced17636@orange.fr> <3adc2904-9876-74d6-2b5d-3cc1896866c3@gmx.de> <3e31cc66-b7ae-adb0-f1a8-18b8bcc11c46@orange.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Content-Language: en-US In-Reply-To: Cc: fortran@gcc.gnu.org X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Message-ID: <20230707182355.auwPBErGYrcR6NEnaMEwf5MVdCGaJfuK2R_c6x2yVcU@z> Hi Mikael, Am 07.07.23 um 14:21 schrieb Mikael Morin: > I'm attaching what I have (lightly) tested so far, which doesn't work. > It seems gfc_conv_class_to_class reevaluates part of the original > expression, which is not correct after deallocation. this looks much more elegant than my attempt that passed an additional argument to gfc_conv_class_to_class, to achieve what your patch does. > Will have a look again tonight. Great. Harald