From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by sourceware.org (Postfix) with ESMTPS id 0FF273857C44 for ; Fri, 19 Feb 2021 08:52:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0FF273857C44 Received: by mail-lj1-x22f.google.com with SMTP id k22so16268517ljg.3 for ; Fri, 19 Feb 2021 00:52:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eETQGe4aUYleBHhBBH2cosjCyNZYaO34hANunZFB8kQ=; b=dmW9wN3g5RkhrxHO7y7Ugkv61pT3rqPbAscypMaXVZ6EA75xqLXXoV5Gdj713hzfIZ waTxrJzPb56xXVNz0/cfyhkffZMxgVP58HUgLelOHsGv++qDCFMZqGwQefSP/eLiveuG RsmO8MRfunwBHOpTKP4drMOQyOvTaY011VDD2PDTReM+Mdbubtw71hDCoTjASyLlIpwY lWz/k33nAk8jMvJl1iMgE/mWAfd+93lOczPYuduvSUFd6CasgQAoaQT8R/v8pfR7CbwE pSa67/nKe7xYgSUrsaD6z5XPoMezSh+QIYVm8WsM54Sc0yx+nas6V1sdMb2XVbQgLuZH 6Wlg== X-Gm-Message-State: AOAM533geaUuStSA0KPwLJjPRtJl/idbJfA5pG32eeWF7C6k00US5DDR kCL400m4dDBXoVzxFq5C56wxoRx8YslkNF1/Eek= X-Google-Smtp-Source: ABdhPJwL1ryCEAHn6CI3cOLUMamERq3BpPGqrXMwtMA67YFW/XvzrqSZKvl6GDBmfz8RpTEg9aqhxVBEbZrhTGNozwo= X-Received: by 2002:a2e:90f:: with SMTP id 15mr5137622ljj.7.1613724756735; Fri, 19 Feb 2021 00:52:36 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Arjen Markus Date: Fri, 19 Feb 2021 09:52:25 +0100 Message-ID: Subject: Re: Help with fortran standards To: Vicini Alessandro Cc: fortran X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: fortran@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Fortran mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2021 08:52:39 -0000 Hello Allessandro, these are fairly general questions, whereas this list is meant for specific questions on the gfortran compiler. You can post these on the Fortran newsgroup comp.lang.fortran or on the Discourse group at https://fortran-lang.discourse.group/. However, here is my reply: - Compaq Visual Fortran has been out of support for several decades. You can use the Intel oneAPI suite as an alternative - CVF may have supported the Fortran 95 standard (I do not quite know the details), but procedure pointers are a thing of Fortran 2003. So it is very unlikely CVF will ever be able to compile your program Regards, Arjen Op vr 19 feb. 2021 om 09:47 schreef Vicini Alessandro via Fortran < fortran@gcc.gnu.org>: > > Hello, I'm not sure this is the right group for this request, but I hope I > can get some help. > I have a module like the one you can see below, which I use so that I can > pass subroutines names as arguments in procedure calls. I've been using > this kind of modules under linux with gfortran (version 8). Now, under > windows with Compaq Visual Fortran 6.6 (which should comply at least to the > fortran95 standards), this same module does not compile... Is this because > it is based on more recent fortran features? In this case, how would it be > possible to do this with fortran 95? Thank you very much for your > attention... > > A. > > Module Selection_type > > Type :: Selection_procedure_type > Procedure(Select_interface), Pointer, Nopass :: item => > null() > End Type Selection_procedure_type > > Abstract Interface > Subroutine Select_interface(arg1,arg2) > Integer :: arg1 > Integer :: arg2(2) > End Subroutine Select_interface > End Interface > > End Module Selection_Type >