From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.smtpout.orange.fr (smtp-15.smtpout.orange.fr [80.12.242.15]) by sourceware.org (Postfix) with ESMTPS id BCDDB3858C62 for ; Mon, 28 Nov 2022 11:54:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BCDDB3858C62 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=orange.fr Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=orange.fr Received: from [192.168.1.17] ([2.10.193.163]) by smtp.orange.fr with ESMTPA id zci8ogQX9aByzzci8o0Wj5; Mon, 28 Nov 2022 12:54:09 +0100 X-ME-Helo: [192.168.1.17] X-ME-Auth: bW9yaW4tbWlrYWVsQG9yYW5nZS5mcg== X-ME-Date: Mon, 28 Nov 2022 12:54:09 +0100 X-ME-IP: 2.10.193.163 Message-ID: <5a8e481f-115c-90ce-9c09-058054e42518@orange.fr> Date: Mon, 28 Nov 2022 12:54:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH] Fortran: ICE with elemental and dummy argument with VALUE attribute [PR107819] Content-Language: fr To: Harald Anlauf , fortran , gcc-patches References: From: Mikael Morin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,FREEMAIL_FROM,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,TXREP 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: Le 27/11/2022 à 21:32, Harald Anlauf via Fortran a écrit : > Dear Fortranners, > > in dependency checking of arguments of elemental prodecures > we should treat dummy arguments with the value attribute as > implicitly having intent(in). This is simple and obvious. > > The PR by Gerhard provides a series of testcases that are > either valid (like the one in the attached patch), or > arguably non-conforming. The issue is related to the > standard prescribing a temporary (in standardese language) > for the argument with the value attribute, while the > elemental attribute prescribes an application order. > > Playing with other compiler brands, there seemed to be an > obvious discrepancy between NAG and Intel on the one side > and Intel on the other. Steve Lionel attributed this to > non-conformance for the discussed case (see link in PR). > > I therefore decided to only use a conforming testcase > for the testsuite, as this is sufficient to check for > the fix for the ICE. > > Regtested on x86_64-pc-linux-gnu. OK for mainline? > Yes. Thanks.