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 libfortran/47434] Wrong field width for NaN with (F0.n) formatting


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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org

--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-01-27 13:08:22 UTC ---
(In reply to comment #3)
> Regarding the other cases:
> Similarly for the '+' sign on Inf.  Until now we have chosen to emit the
> optional characters.

Comparison with other compilers for the example of comment 3.

a) Crayftn 7.2.4
  Infinity
Inf
      0.00
.00
      0.00
.00

b) ifort 11.1, PathScale 3.2.99, Open64 4.2.2.1, 
Infinity
Inf
0.00
.00
0.00
.00

c) Sun Fortran 95 8.3, pgf90 10.5-0
Inf
Inf
0.00
.00
0.00
.00

d) g95 4.03 (0.93)
+Inf
Inf
.00
.00
.00
.00

e) xlf95/AIX V12.1
INF
INF
0.00
.00
0.00
.00

f) NAG 5.1
        <<< Yes, that's an zero-length string
Inf
.00
.00
.00
.00

g) g77: Does not like w = 0 and prints "inf" (small "i"), and ".00" for the
other lines.


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