This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/24285] New: format( 1000(a,$))
- From: "debian-gcc at lists dot debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Oct 2005 13:27:23 -0000
- Subject: [Bug fortran/24285] New: format( 1000(a,$))
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
[forwarded from http://bugs.debian.org/324600]
Bug submitter writes:
I had no compilation problems with g77.
300 format( 1000(a,$))
1
Error: $ must the last specifier in format string at (1)
301 format(/1000(a,$))
Error: $ must the last specifier in format string at (1)
If it is really a code problem what would be the correct syntax?
Reply from FX Coudert:
g77 documentation states:
"A dollar sign at the end of an output format specification suppresses
the newline at the end of the output."
Since this (a $ as format specifier) is an extension, there is nothing
in the standard against this. On the other hand, all the compilers I
have at hand accept this, so I think we might as well remove this contraint.
I think this can be reported as a bug.
--
Summary: format( 1000(a,$))
Product: gcc
Version: 4.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian-gcc at lists dot debian dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24285