[Bug fortran/20058] New: Error on kind 16 hex data statement

dir at lanl dot gov gcc-bugzilla@gcc.gnu.org
Fri Feb 18 21:17:00 GMT 2005

I get an error with the Macintosh gfortran from the 20050213 package. This
compilies with out problem on all the f90 and f95 compiliers that I have tried.
Puting "Z'4002800000000000'_INT8" as the data statement will let gfortran
compile it, but then Absoft 9.0, Layhey 6.2 and IBM will reject it.

[dranta:~/tests/gfortran] dir% gfortran -c sagechanges.f90
 In file sagechanges.f90:5

        data ieee64_two / Z'4002800000000000'/
Error: Integer too big for integer kind 4 at (1)
[dranta:~/tests/gfortran] dir% cat sagechanges.f90
      subroutine get_real_type()
        implicit none
        integer, parameter :: INT8  = SELECTED_INT_KIND(16)
        integer(INT8) :: ieee64_two
        data ieee64_two / Z'4002800000000000'/
      end subroutine get_real_type

           Summary: Error on kind 16 hex data statement
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dir at lanl dot gov
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: powerpc-apple-darwin7.8.0


More information about the Gcc-bugs mailing list