From: Vicini Alessandro <alessandro.vicini@sitael.com>
To: fortran <fortran@gcc.gnu.org>
Subject: Help with fortran standards
Date: Fri, 19 Feb 2021 08:40:16 +0000 [thread overview]
Message-ID: <AM6PR08MB3799BB84A640B7012EBD195391849@AM6PR08MB3799.eurprd08.prod.outlook.com> (raw)
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
next reply other threads:[~2021-02-19 8:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-19 8:40 Vicini Alessandro [this message]
2021-02-19 8:52 ` Arjen Markus
2021-02-19 9:08 ` R: " Vicini Alessandro
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=AM6PR08MB3799BB84A640B7012EBD195391849@AM6PR08MB3799.eurprd08.prod.outlook.com \
--to=alessandro.vicini@sitael.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).