From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by sourceware.org (Postfix) with ESMTPS id 76E103858D32 for ; Fri, 2 Jun 2023 14:53:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 76E103858D32 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-pg1-x529.google.com with SMTP id 41be03b00d2f7-530638a60e1so1925709a12.2 for ; Fri, 02 Jun 2023 07:53:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685717636; x=1688309636; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=NUTRlPZzAYo/1uwoWcj1TJdIIdyIR54GcDlzmxskXgE=; b=d8UiC3qG/7g2jfqW+jc1X/mjxtBqmZysMeK/PPXTk1u9lq+FAFy7CzsTAunDFkp5u8 9PgArcThlBMgiQhsBfcS+9MYyusK4AQ0q1VZJMfD2MXMV0MYc8OOgPib385184KzGCXx VyKPWzZs5j11wy7/r6KVCvZELMnRwhgGOdWEdm0+vZGl5fvyNP5/nEtMvaGIOsxqx9F+ g92+iZP+ST/TWFkelIJDketHCpAp/N8HfppP+gDbYXOPyaZWzYzO/+qexPDosMNsK9Re 8LZrfJs2faWDjSJA7pV/rFNW3QPLOuP7Xy9u+G++wmAHfxX9BvgbJHDsEipE9PIfH8xk fkTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685717636; x=1688309636; h=content-transfer-encoding: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=NUTRlPZzAYo/1uwoWcj1TJdIIdyIR54GcDlzmxskXgE=; b=VW36d/2TGI5auJuBe2g9rm6LnKxiRWqJ9tg7z7cyoQLipDTTX7HW+kLf2duW/6MMMT v8jy3osD4/TL0aocS/239UxgMmXjVuWuPufTTuczHlXErEKU6VQEzwGGgbFcpbYK/2Q5 XZ7NxmGHyxCKGOxmtSqzXNanwBxL3Esr8rSuMuxWg+95CkBTV0kgiqT4ksW9f9rawpqQ GfoAorB1BXK97+CuVSArCwBu3I5UxSpMM+fdlQrYkcyQBxLjJUKUVi7giJqRZOhVvHNG I3WDfdMN6SNVV5uvw3gasipY16IxbVUTi24IVuCuTv3Hpv2ZJF05M/Cq5mTJIXMvim8F iZQw== X-Gm-Message-State: AC+VfDwgeyybTpsO34DNNXuxX/2kJ4G9NBdOi/zrqtbPDPx8F4uiHPt8 C2sKe2I9nnYr5Wk6jSCa439MUFW3CK1X3tT4VXQ= X-Google-Smtp-Source: ACHHUZ49wVjqTg19JWZjuSqylSz4ovdlIuMD9jBO/AdyphSeW6f49fpIamFI+gAILbmbaeeJ8vF1zzAckR3kx+W9TKY= X-Received: by 2002:a17:90a:6903:b0:256:544a:74c9 with SMTP id r3-20020a17090a690300b00256544a74c9mr130936pjj.25.1685717636095; Fri, 02 Jun 2023 07:53:56 -0700 (PDT) MIME-Version: 1.0 References: <6b48bc0f-043f-4635-abaf-bac09d67323b.1685712510891@community.intel.com> <1260414420.3647.1685715134551.JavaMail.zimbra@intec.unl.edu.ar> In-Reply-To: <1260414420.3647.1685715134551.JavaMail.zimbra@intec.unl.edu.ar> From: Paul Richard Thomas Date: Fri, 2 Jun 2023 15:53:44 +0100 Message-ID: Subject: Re: A doubt about IMPORT and SELECT TYPE To: "Jorge D'Elia" Cc: Gfortran List , "Jorge D'Elia" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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: Hi Jorge, As I posted in the Intel Community, the error generated by gfortran (and nagfor) is consistent with the F2003 constraint: C1210 (R1209) The IMPORT statement is allowed only in an interface-body. Could you please raise a problem report in gcc Bugzilla? Thanks Paul On Fri, 2 Jun 2023 at 15:04, Jorge D'Elia via Fortran wrote: > > Hi, > > I have a doubt about IMPORT and SELECT TYPE, please see the > forwarded message below (that also has a sample code), as well > > https://www.ibm.com/docs/en/xffbg/121.141?topic=3Dattributes-import-fortr= an-2003 > > What is the correct way? Thanks. > > Regards. > Jorge. > > ----- Forwarded message ----- > From: "Intel Community" > To: "Jorge D'Elia" > Sent: Viernes, 2 de Junio 2023 10:28:31 > Subject: Re: Bug with IMPORT and SELECT TYPE (Intel Community Subscriptio= n Update) > > Hi jdelia, > > OP1 (New Contributor II) posted a new reply in Intel=C2=AE Fortran Compil= er on 06-02-2023 10:28 AM in the Intel Community: > > https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-with-IMPORT-and= -SELECT-TYPE/m-p/1492319/emcs_t/S2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufExJRUx= QQzhSUEVaS1RTfDE0OTIzMTl8U1VCU0NSSVBUSU9OU3xoSw#M166583 > > Subject: Re: Bug with IMPORT and SELECT TYPE > > Well, it appears that gfortran also gets it wrong... the use of an IMPORT= statement is not limited to interfaces. > See this paragraph from the Intel documentation: An IMPORT statement can = appear in a submodule, module procedure, > a contained procedure, the specification part of a BLOCK construct, or in= an interface body. It can not appear in > the specification part of a main program, external procedure, module, or = block data except in an interface body. > > -- --=20 "If you can't explain it simply, you don't understand it well enough" - Albert Einstein