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/57399] New: errors in formatted print of floating numbers


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

            Bug ID: 57399
           Summary: errors in formatted print of floating numbers
           Product: gcc
           Version: 4.6.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: custos.mentis at gmail dot com

A simple test of formated print

write(*,"(1e10.2,1x,f8.2,1x,1pe10.2,1x,f8.2)") 100.0, 100.0, 100.0, 100.0

results in wrong output:

0.10E+03   100.00   1.00E+02  1000.00
                              -------

All four numbers should be equal 100.0, but the last one is 10 x larger!

I am using GNU Fortran (Gentoo 4.6.3 p1.13, pie-0.5.2) 4.6.3


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