public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
* Help with fortran standards
@ 2021-02-19  8:40 Vicini Alessandro
  2021-02-19  8:52 ` Arjen Markus
  0 siblings, 1 reply; 4+ messages in thread
From: Vicini Alessandro @ 2021-02-19  8:40 UTC (permalink / raw)
  To: fortran


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-02-19  9:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-19  8:40 Help with fortran standards Vicini Alessandro
2021-02-19  8:52 ` Arjen Markus
2021-02-19  9:08   ` R: " Vicini Alessandro
2021-02-19  9:11     ` Arjen Markus

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).