fails to compile the valid code
Steve Kargl
sgk@troutmask.apl.washington.edu
Wed Nov 23 01:29:00 GMT 2005
On Tue, Nov 22, 2005 at 05:13:19PM -0800, Uttam Pawar wrote:
>
> > Lahey claims the code is illegal.
> >
> > Compiling program unit mytype_module at line 1:
> > 1730-S: "SOURCE.F90", line 7, column 21: 'mytype' already used as a
> > type name.
NAG's compiler reports this error. If I change mytype to mytype1
in the interface, then ...
> > 1260-S: "SOURCE.F90", line 8, column 14: If the interface block has
> > no generic specification, a MODULE PROCEDURE statement must
> > not be specified.
NAG accepts this code.
> > Encountered 2 errors, 0 warnings, 0 informations in file SOURCE.F90.
> > Compiling file SOURCE.F90.`
> >
> > I suspect that xlf95 has a flag similar to -std=f95.
>
> xlf95 has std flag which is set by default.
>
BTW, Lahey has a web based conformance checker. www.lahey.com
--
Steve
More information about the Fortran
mailing list