These lines cannot be compiled with gfortran (GNU Fortran 95 (GCC) 4.2.0
20070117 (prerelease)) on a Mac OS X 10.4 (powerpc): 

      INTEGER*2 IWD1
      IWD1 = 32768
      END

It fails with

      IWD1 = 32768
            1
Error: Arithmetic overflow converting INTEGER(4) to INTEGER(2) at (1)


This works for g77 (GNU Fortran (GCC) 3.4.3) as well as with gfortran (and g77)
on Mac OS X 10.4 on intel (i686-apple-darwin8).

All fortran compilers have been compiled within the Fink framework.


-- 
           Summary: INTEGER(2) overflow
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: remi dot mommsen at gmx dot net
 GCC build triplet: powerpc-apple-darwin8
  GCC host triplet: powerpc-apple-darwin8
GCC target triplet: powerpc-apple-darwin8


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

Reply via email to