This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug fortran/13490] New: Compiler rejects valid constant -2147483648 for 32-bit int


The attached program compiles and runs correctly with Intel Fortran 95 8.0 and
Lahey Fortran 95 6.1, but generates an error with gfortran. The error is:

In file parambug.f90:5
 
    integer(MY_KIND), parameter :: X = -2147483648
                                             1
Error: Arithmetic overflow at (1)

-- 
           Summary: Compiler rejects valid constant -2147483648 for 32-bit
                    int
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: coyote at coyotegulch dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux
  GCC host triplet: i686-pc-linux
GCC target triplet: i686-pc-linux


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


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