With -fdefault-integer-8 the following code: program test_rrspacing real x x = 3.0 x = rrspacing(x) print *, x, spacing(x), spacing(3.0) x = 3.0 x = spacing(x) print *, x end
gives: 0.7500000 1.6777216E+07 2.3841858E-07 1.6777216E+07 instead of 1.2582912E+07 1.000000 2.3841858E-07 2.3841858E-07 Note that like PR32933 the code does not involve directly integers and as in the original test of PR32770 it seems to be linked to bigendian platforms (PPC here). -- Summary: (rr)?spacing give wrong answers 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=32969