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/16291] New: F2003 formatting of Inf /Nan on irix6.5


Test nan_inf_fmt.f90 fails on irix6.5 with N32 and 64 ABIs.

The failure occurs when writing to a string with a field
width of 3.  With the lines commented out (below) the test
passes and the two write(6,fmt=fmt) lines I inserted produce
"Inf" as desired.  

! check a field width = 3
       print *, 3
       fmt = '(F3.0)'
       write(6,fmt=fmt)pos_inf
!       write(l,fmt=fmt)pos_inf
!       if (l.ne.'Inf') call abort
       write(6,fmt=fmt)neg_inf
!       write(l,fmt=fmt)neg_inf
!       if (l.ne.'Inf') call abort
       write(l,fmt=fmt)nan
       write(l,fmt=fmt)nan
       if (l.ne.'NaN') call abort


Will follow up as time permits.

-- 
           Summary: F2003 formatting of Inf /Nan on irix6.5
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: billingd at gcc dot gnu dot org
        ReportedBy: billingd at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: mips-sgi-irix6.5
  GCC host triplet: mips-sgi-irix6.5
GCC target triplet: mips-sgi-irix6.5


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


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