fortran structure support in gcc4 (on redhat linux 4)

Tobias Schlüter tobias.schlueter@physik.uni-muenchen.de
Wed Oct 18 16:37:00 GMT 2006


dennis.p.kelly@census.gov wrote on Wed, 18 Oct 2006:
> I found a documented option that implies you can be using fortran95 or
> gfortran or a version that supports structures....
>
> [kelly004@ec2 progs]$ gcc4 -std=f95 y.f95
>  In file y.f95:2
>
>       STRUCTURE /s/
>      1
> Error: Unclassifiable statement at (1)
>  In file y.f95:4
>
> But it still will not compile,

I find your message hard to parse, but your question probably is "Is  
the STRUCTURE statement ratified by any Fortran standard?" No, it  
isn't, it's an extension apparently originating from the VMS compiler.

On the other hand, Fortran 90 introduced named types.  I have no idea  
how difficult a migration would be, i.e. how similar those  
implementations of the named type paradigm are.

- Tobi


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the Fortran mailing list