This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/25063] EOR cannot appear in WRITE statement
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Nov 2005 19:34:37 -0000
- Subject: [Bug fortran/25063] EOR cannot appear in WRITE statement
- References: <bug-25063-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from fxcoudert at gcc dot gnu dot org 2005-11-26 19:34 -------
gfortran doesn't catch that one:
## g95 ##
In file foo.f90:1
write(6,FMT='(I0)',EOR=999,ADVANCE="NO") I
1
Error: EOR tag at (1) can only appear in a READ statement
## Intel ##
fortcom: Error: foo.f90, line 1: This specifier is invalid for this I/O
operation. [EOR]
write(6,FMT='(I0)',EOR=999,ADVANCE="NO") I
-----------------------^
fortcom: Error: foo.f90, line 1: This use of the ADVANCE, SIZE, or EOR
specifier is invalid.
write(6,FMT='(I0)',EOR=999,ADVANCE="NO") I
^
fortcom: Warning: foo.f90, line 1: This name has not been given an explicit
type. [I]
write(6,FMT='(I0)',EOR=999,ADVANCE="NO") I
---------------------------------------------^
compilation aborted for foo.f90 (code 1)
## Portland ##
PGF90-S-0201-Illegal I/O specifier - EOR (foo.f90: 1)
0 inform, 0 warnings, 1 severes, 0 fatal for MAIN
## Sun ##
write(6,FMT='(I0)',EOR=999,ADVANCE="NO") I
^
"foo.f90", Line = 1, Column = 24: ERROR: The EOR specifier cannot be used in a
WRITE statement control list.
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |accepts-invalid
Last reconfirmed|0000-00-00 00:00:00 |2005-11-26 19:34:37
date| |
Summary|better diagnostic needed |EOR cannot appear in WRITE
| |statement
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25063