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/29814] New: integer assignment in hexadecimal fails


INTEGER*4 :: MASK1 = Z'FFFFFFFF'
      PRINT *,MASK1
      END

compiles and produces "-1" with g77 (as it should) while gfortran reports 

 In file err.f:1

      INTEGER*4 :: MASK1 = Z'FFFFFFFF'                                  
                         1
Error: Arithmetic overflow converting INTEGER(8) to INTEGER(4) at (1)

Olav


-- 
           Summary: integer assignment in hexadecimal fails
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: vahtras at pdc dot kth dot se
 GCC build triplet:  powerpc-apple-darwin8.8.0
  GCC host triplet:  powerpc-apple-darwin8.8.0
GCC target triplet:  powerpc-apple-darwin8.8.0


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


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