This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/83560] list-directed formatting of INTEGER is missing plus on output when output open with SIGN='PLUS'
- From: "urbanjost at comcast dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 23 Dec 2017 03:16:28 +0000
- Subject: [Bug fortran/83560] list-directed formatting of INTEGER is missing plus on output when output open with SIGN='PLUS'
- Auto-submitted: auto-generated
- References: <bug-83560-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83560
--- Comment #2 from urbanjost at comcast dot net ---
Created attachment 42958
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42958&action=edit
NAMELIST integers exhibit same problem
PS:
An INTEGER in a NAMELIST shows the same issue (missing +). Added larger test as
attachment, output of which is:
PASS WHERE FILE HAS SIGN="PLUS"
LIST DIRECTED +12.3456001 789 ( +123.456001 ,
+987.653992 )
GENERAL FORMATTED +12.3456001 +789 +123.456001 +987.653992
GENERAL FORMATTED EXPLICIT SUPPRESS 12.3456001 789 123.456001 987.653992
GENERAL FORMATTED EXPLICIT PLUS +12.3456001 +789 +123.456001 +987.653992
FORMATTED +12.3456 +789 +123.4560 +987.6540
FORMATTED +12.3456 +789 +123.4560 +987.6540
&NLIST
I= 789, <<== MISSING PLUS
A= +12.3456001 ,
X=( +123.456001 , +987.653992 ),
/
PASS WHERE FILE HAS SIGN="SUPPRESS"
LIST DIRECTED 12.3456001 789 ( 123.456001 ,
987.653992 )
GENERAL FORMATTED 12.3456001 789 123.456001 987.653992
GENERAL FORMATTED EXPLICIT SUPPRESS 12.3456001 789 123.456001 987.653992
GENERAL FORMATTED EXPLICIT PLUS +12.3456001 +789 +123.456001 +987.653992
FORMATTED 12.3456 789 123.4560 987.6540
FORMATTED 12.3456 789 123.4560 987.6540
&NLIST
I= 789,
A= 12.3456001 ,
X=( 123.456001 , 987.653992 ),
/