From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by sourceware.org (Postfix) with ESMTPS id 594CE3858D28 for ; Fri, 6 Jan 2023 03:09:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 594CE3858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-x434.google.com with SMTP id g20so212556pfb.3 for ; Thu, 05 Jan 2023 19:09:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:subject:from:references:to :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=2HpTwIKQZEMWkaAzWP8t2SUsF2ZWySiRJo2lglWlRts=; b=TbGg+Z863nr0x+mXVli12uKkRDQxS9D02vBXDna7f1kFkyIRhVVJbOz9p1twim63mB QG/CXmjyLALRpf5jtKQcjd/9EsGeYbFlxjizylJrAaCs0kR6G5AKQAEdjyId+CBf3nLZ C0Le+yqIAPLsxzc4WjOSh3YN4dOnwENE6gx1D5wLDjtzTOnNMg0i00vYYbJApd+cxnTX paOWWtC0S5joexN8FItNhn81SDmBKOX39vlIpJZxh3gze0ybAjRVCXPk8syOhoRS6Lqn mW7+vZnBu3EiXMJisgDyPKY8HEJBwM5f+Qy4SFPTtpKK35TL1gtPOgsh3lfDEpCL/QDm /h4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:subject:from:references:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2HpTwIKQZEMWkaAzWP8t2SUsF2ZWySiRJo2lglWlRts=; b=y3QR7EHRp+OLnEMSmNg+lDvaP5jsj0Ys6NGqbq/X0Tg4OYFdPS2fdFFbCmQ7AXxFcf 7wmLUiUYVm74hFsaAKT66onGlYcXFPYKdTajmR/ZmbPhbmkC5CtBBcGuzk0fwCMV7RR/ XWMBynTyozf0dH3OnGvfiAU1BulQtKDZnnavfoI9QY8dFAcYp0E7cw9gAbKzkOwaY5nU NjtF9O0lT2ILyOr1ZG81QnI12wxteipCw1CvT55+iNj9ei9GG/w57PsWSXR3e7qFHtZu +3NLnwwgLXQlZyqmHrdgcevalkm4GLY4/W/55Tn2ZHPoBynEN7RuRNfxD5SyxwoEG6cr I3WQ== X-Gm-Message-State: AFqh2krvdOIxhV5h97Gdh3wU/mMrLA5XC7nJuTKxGxHLMxdg/GywpE/z k0atTiECxudkw3eZ1tpYCPE= X-Google-Smtp-Source: AMrXdXvomnZyry8vkuvEp1E+P4uhC7zNhg+Guw9TXvc9McRLHPvZ9nVfKt6K3g6vZyPomGEaJ7gnnA== X-Received: by 2002:aa7:909a:0:b0:582:4a5e:b1ec with SMTP id i26-20020aa7909a000000b005824a5eb1ecmr4223844pfa.2.1672974540178; Thu, 05 Jan 2023 19:09:00 -0800 (PST) Received: from [192.168.1.20] ([50.37.188.226]) by smtp.gmail.com with ESMTPSA id w124-20020a626282000000b005769b23260fsm26746pfb.18.2023.01.05.19.08.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Jan 2023 19:08:59 -0800 (PST) Message-ID: <78aafe8c-dcf9-55e6-50ce-c6289ea1f3fe@gmail.com> Date: Thu, 5 Jan 2023 19:08:58 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Content-Language: en-US To: Harald Anlauf , fortran References: <9a2667e2-8055-bcac-1862-05c8ac60ce7a@gmx.de> <3cbaf568-84ac-8498-558f-9560fe395d66@gmx.de> <7ab973cd-f62e-28be-36e8-4e44252a4a38@gmx.de> <061aee5b-c27c-3a9f-419d-9893c2d744c4@netcologne.de> From: Jerry D Subject: Re: Fw: Re: [Patch, fortran] PR37336 (Finalization) - [F03] Finish derived-type finalization In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP 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 1/5/23 1:14 PM, Harald Anlauf via Fortran wrote: > Resending as plain text, as the original version did not appear on the fortran list... > > > Gesendet: Donnerstag, 05. Januar 2023 um 22:10 Uhr > Von: "Harald Anlauf" > An: "Paul Richard Thomas" > Cc: "fortran@gcc.gnu.org" , "Alessandro Fanfarillo" , "Andrew Benson" , "Thomas Koenig" , "Damian Rouson" > Betreff: Re: [Patch, fortran] PR37336 (Finalization) - [F03] Finish derived-type finalization > > Dear Paul, all, > > I had a first look at the patch and the testcases, and I really look forward to getting this into gfortran. > > A few questions surfaced when playing with it, which is why am asking for others to comment. > > Testcase finalize_38.f90 exhibits a (potential) discrepancy to my expections when playing with options -std=f2018 and -std=gnu (the default). > > What is the expected behavior of -std=gnu?  My expectation is that -std=gnu always corresponds to the latest implemented standard (currently F2018), except for possibly allowing for GNU-extensions.  This might imply that corrigenda to a standard or a newer version may lead (over time) to an adjustment of the behavior.  Any opinions on it?  Do we need to always test (in the testsuite) for compliance with older standards? > My understanding is that -std=gnu tends to be the least restrictive and will allow finalize_38.f90 to compile possibly with warnings. The warnings are to allow the user to know thay are out of current compliance, but we should not fail on code that was previously compliant and less we specify -std=f2018 which is more restrictive. Jerry