the following code

integer i
do i = 1, 10
   print *, selected_int_kind (i)
end do
end

gives with -fdefault-integer-8 '4294967424' 10 times on PPC Darwin8 and 

           4294967297
           8589934593
          12884901890
          17179869186
          21474836484
          25769803780
          30064771076
          34359738372
          38654705668
          42949672968

on AMD64 Linux. Likewisethe following

integer i
do i = 1, 10
   print *, selected_real_kind (i)
end do
end

gives '17179869312' 10 times on PPC and 

           4294967300
           8589934596
          12884901892
          17179869188
          21474836484
          25769803780
          30064771080
          34359738376
          38654705672
          42949672968

on AMD.


-- 
           Summary: selected_(int|real)_kind fail 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: dominiq at lps dot ens dot fr


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

Reply via email to