This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/32611] Print sign of negative zero
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jul 2007 07:01:10 -0000
- Subject: [Bug libfortran/32611] Print sign of negative zero
- References: <bug-32611-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from jvdelisle at gcc dot gnu dot org 2007-07-08 07:01 -------
F77 Standard:
13.5.9 (3) "On output, the representation of a positive or zero internal value
in the field may be prefixed with a plus, as controlled by the S, SP, and SS
edit descriptors (13.5.6) or the processor. The representation of a negative
internal value in the field must be prefixed with a minus. However, the
processor must not produce a negative signed zero in a formatted output
record."
I do not find that last statement about negative signed zero in the F95 or
F2003. However, I am still reviewing these more recent standards. A patch is
developing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32611