From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by sourceware.org (Postfix) with ESMTPS id 263E53858D33 for ; Thu, 4 May 2023 08:09:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 263E53858D33 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-pj1-x102a.google.com with SMTP id 98e67ed59e1d1-2470e93ea71so201598a91.0 for ; Thu, 04 May 2023 01:09:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683187782; x=1685779782; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ClmN8XRgOdvlSTRIaMJDEjS9lT4rVgY3bZcF73LLrKg=; b=MoGpCslfIUDLWszVDRJ5/wUmymUyk5C4D5D64CZtQyoPNh5ZOH7bP/T6GYyFWrpzW/ vH0KsYIqm3o7GZHqpEFBzk6pyBmH2c5z6TjcEPYrLav7DD4RokZmrhunnOn2B6CBhfIh Acd57GKiYAPoEIbxA+n2RLFwogsqoL3C0Rv293fFStluFh0ZVXpH44YpGvh9Ecv0Hoju vKjbrBtCjDq+rYJYvhUIe1KJFk9/icQrAbp96HiqSR2t/R90YQ1RivllodIJ+PbJ58P4 B3xvkYc1rqd2yMt23As4RPRUTOmRzeqCVGMv898rGKC+OKt7Gy+NJHxjaqxBaaGmU1x9 rq2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683187782; x=1685779782; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ClmN8XRgOdvlSTRIaMJDEjS9lT4rVgY3bZcF73LLrKg=; b=SZ03k+WTz6MXZ3LnCGr7eWQHNX8O4d5IiCB6LJTAYwYRViHY3k7gpfBJY/IctEPOZt 0z2HsQHjXICCYCWZgC7xSJy0z+qwGwLiZr/YpsQN1JARLt9f5+S1d5alDwJjfJkkYHwK NXi/jPW7IOk53TrWUSgUjwQtER84ebPkVyjTPiiyrbCwGOZiWAoa50rSIcfHHNAaX0ij JRQoVny3oK8EmgWFSa/7u3v+GcVqKdKxPDm17z6xVMLmu1awhw5TwT8NylDszG0iVA/d hLAMCpYRxJqT1tmXhxqTSZKo5FYSZUG3Ay3LNVOFeo4iiq7+kkHcDoH/Ji934UD/XyCo ReTw== X-Gm-Message-State: AC+VfDzC/T//TYMQ4TZad0fNMHgPbAPoORrnc1mtPEeyVCAHsxPErOXN 1Hi00tmv6dJ5NrvNrpWsr1jyuGz1itbgyvvGpfI= X-Google-Smtp-Source: ACHHUZ7BcBZuO82zxV0c6+kU1ZS+Zjis5Mh28gnIMhTLFck8SnT9i914KMW7wnFje/RMnlwF8KMC5R79ULTwQ9ln5p0= X-Received: by 2002:a17:90b:3685:b0:24e:2248:31c with SMTP id mj5-20020a17090b368500b0024e2248031cmr1495175pjb.22.1683187782035; Thu, 04 May 2023 01:09:42 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Paul Richard Thomas Date: Thu, 4 May 2023 09:09:30 +0100 Message-ID: Subject: Re: finalization issue To: sgk@troutmask.apl.washington.edu Cc: fortran@gcc.gnu.org Content-Type: multipart/alternative; boundary="000000000000d6af6d05fad9b14e" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,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: --000000000000d6af6d05fad9b14e Content-Type: text/plain; charset="UTF-8" Hi Steve, Nagfor responds to the test case with "Error: pr97122.f90, line 14: Type T has final subroutines but is not defined in the specification part of a module" F2018: "C787(R753) A final-subroutine-name shall be the name of a module procedure with exactly one dummy argument." Since, of necessity, the argument is declared to be of the derived type with the final binding, the gfortran and nagfor errors are correct IMHO. ifort compiles it without complaint. I have marked this as "waiting" pending a contrary interpretation. Cheers Paul On Wed, 3 May 2023 at 23:59, Steve Kargl via Fortran wrote: > All, > > PR97122 shows an issue with finalization. > It seems I attached a diff to the PR in 2020, > which allows the code to compile. The diff > applied to today's trunk still allows the > code to compile but there is now at least > 1 regression with finalize_8.f03. > > Even with my patch, I'm uncertain as to > whether the finalizing subroutine is > correctly hooked to the right namespace. > > -- > steve > -- "If you can't explain it simply, you don't understand it well enough" - Albert Einstein --000000000000d6af6d05fad9b14e--