------- Comment #1 from fxcoudert at gcc dot gnu dot org 2005-11-26 19:37 ------- gfortran doesn't issue an error about this one:
## g95 ## In file foo.f90:1 write(6,FMT='(I0)',SIZE=J,ADVANCE="NO") I 1 Error: SIZE tag at (1) can only appear in a READ statement ## Intel ## fortcom: Warning: foo.f90, line 1: This name has not been given an explicit type. [J] write(6,FMT='(I0)',SIZE=J,ADVANCE="NO") I ----------------------------^ fortcom: Error: foo.f90, line 1: This specifier is invalid for this I/O operation. [SIZE] write(6,FMT='(I0)',SIZE=J,ADVANCE="NO") I -----------------------^ fortcom: Error: foo.f90, line 1: This use of the ADVANCE, SIZE, or EOR specifier is invalid. write(6,FMT='(I0)',SIZE=J,ADVANCE="NO") I ^ fortcom: Warning: foo.f90, line 1: This name has not been given an explicit type. [I] write(6,FMT='(I0)',SIZE=J,ADVANCE="NO") I --------------------------------------------^ compilation aborted for foo.f90 (code 1) ## Portland ## PGF90-S-0201-Illegal I/O specifier - SIZE (foo.f90: 1) 0 inform, 0 warnings, 1 severes, 0 fatal for MAIN ## Sun ## write(6,FMT='(I0)',SIZE=J,ADVANCE="NO") I ^ "foo.f90", Line = 1, Column = 24: ERROR: The SIZE 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:37:41 date| | Summary|better diagnostic needed |SIZE tag not allowed in | |WRITE statement http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25066