[Bug fortran/57399] New: errors in formatted print of floating numbers

2013-05-24 Thread custos.mentis at gmail dot com
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


[Bug fortran/57399] errors in formatted print of floating numbers

2013-05-24 Thread custos.mentis at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57399

--- Comment #2 from Grzegorz Kowal  ---
Yes, you are right. Silly me. Thanks for your clear explanation and quick
response!