When I compile and run the program listed below under the mips version of
gfortran with -fdefault-integer-8 it prints "i = 0". It should print "i = 1".

PROGRAM test
i = 0
CALL MVBITS(1, 0, 16, i, 0)
WRITE(*, 10) i
10 FORMAT("i =",i2)
END PROGRAM test


-- 
           Summary: bad result from mvbits in mips version of gfortran with
                    -fdefault-integer-8
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: michael dot a dot richmond at nasa dot gov


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

Reply via email to