------- 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

Reply via email to