This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -fugly-logint ?


On Sun, Nov 27, 2011 at 22:38, Steve Kargl
<sgk@troutmask.apl.washington.edu> wrote:
> 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.

According to

http://gcc.gnu.org/onlinedocs/gfortran/Implicitly-convert-LOGICAL-and-INTEGER-values.html#Implicitly-convert-LOGICAL-and-INTEGER-values

no.

> The best option is to fix the code.

Agreed.


-- 
Janne Blomqvist


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]