-fugly-logint ?

Steve Kargl sgk@troutmask.apl.washington.edu
Sun Nov 27 20:38:00 GMT 2011


On Sun, Nov 27, 2011 at 03:33:18PM -0500, Tom Roche wrote:
> 
> summary: Code I'm compiling with 4.6.1 gives the error
> 
> >      foo.f  -o  foo.o 
> > foo.f:780.10:
> >       IF (LIMIT_Sg == .TRUE.) THEN
> >           1
> > Error: Logicals at (1) must be compared with .eqv. instead of ==
> 
> Can I fix this error without fixing the code? E.g., can one compile
> with something like -fugly-logint (which I see while googling, but not
> in current docs)?
> 

The -fugly-* options are g77 options, which have not and
hopefully will never appear in gfortran.

You can try -std=legacy.  I don't know if this option
will allow the above.

The best option is to fix the code.

-- 
Steve



More information about the Fortran mailing list