public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
From: Vicini Alessandro <alessandro.vicini@sitael.com>
To: Arjen Markus <arjen.markus895@gmail.com>
Cc: fortran <fortran@gcc.gnu.org>
Subject: R: Help with fortran standards
Date: Fri, 19 Feb 2021 09:08:14 +0000	[thread overview]
Message-ID: <AM6PR08MB3799ECB6FBE23D1B4F0CC78991849@AM6PR08MB3799.eurprd08.prod.outlook.com> (raw)
In-Reply-To: <CAMCbSMqmvKgeWQJ7ZWnR8jjKxewEx630RYesh1E=KM85-m9RSg@mail.gmail.com>

Hello Arjen,

unfortunately this code has been developed with CVF using its features to create dialog routines, so I need to work under CVF...
So I guess I'll need alternative solutions to procedure pointers. Thank you!

A.


Da: Arjen Markus
Inviato: venerdì 19 febbraio 2021 09:52
A: Vicini Alessandro <alessandro.vicini@sitael.com>
Cc: fortran <fortran@gcc.gnu.org>
Oggetto: Re: Help with fortran standards

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/<https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffortran-lang.discourse.group%2F&data=04%7C01%7Calessandro.vicini%40sitael.com%7C244a4f568c50447a66e208d8d4b3b53b%7Cc187ee014e4e40c8b342f82c8d699421%7C0%7C0%7C637493216470611540%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=sUxITpMqFTsdWVu2HfkuJaP7iANhMP1tMdKUFu49hZc%3D&reserved=0>.

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<mailto: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

  reply	other threads:[~2021-02-19  9:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-19  8:40 Vicini Alessandro
2021-02-19  8:52 ` Arjen Markus
2021-02-19  9:08   ` Vicini Alessandro [this message]
2021-02-19  9:11     ` Arjen Markus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AM6PR08MB3799ECB6FBE23D1B4F0CC78991849@AM6PR08MB3799.eurprd08.prod.outlook.com \
    --to=alessandro.vicini@sitael.com \
    --cc=arjen.markus895@gmail.com \
    --cc=fortran@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).