Using -fugly-logint with the following code gives wrong evaluation of .eqv.
statement
      program test
      Logical a, b
      a=.TRUE.
      b=.FALSE.
      if( a .eqv. b )then
        print *,'true'
      else
        print *,'false'
      end if
      end
The result is "true". Program compiled using gcc 3.4.6
 gcc -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-8)


-- 
           Summary: g77 with -fugly-logint wrongly evaluates .eqv. statement
           Product: gcc
           Version: 3.4.6
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: janciosz at gmail dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35539

Reply via email to