G77: bitwise .AND. ?
Toon Moene
toon@moene.indiv.nluug.nl
Wed Apr 24 14:32:00 GMT 2002
Hassan Aurag wrote:
> if you compile the attached file on Linux using 'g77 -fugly-logint' and
> run it, you get:
>
> T F F F
>
> On AIX (RISC) with 'xlf -qintlog', you get:
>
> T F T F
I think the problem is that g77 considers
l4 = ll4 .and. true
a logical expression - which will have the value 0 or 1 - because all
the elements are logicals (so in spite of the -fugly-logint).
I don't know an easy way out of this, unfortunately.
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)
More information about the Gcc-help
mailing list