G77: bitwise .AND. ?

Hassan Aurag aurag@cae.com
Fri Apr 26 11:47:00 GMT 2002


Ok the problem below is fixed by doing

and(ll4, true) instead of ll4.and.true


In my opinion, this is a bug in G77.



On Wed, 2002-04-24 at 17:31, Toon Moene wrote:
> 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