------- Comment #1 from fxcoudert at gcc dot gnu dot org  2005-11-26 19:38 
-------
gfortran segfaults on that one:

## gfortran ##
foo.f90:0: internal compiler error: Segmentation fault

## g95 ##
In file foo.f90:1

    read(5,FMT=*,REC=10) I
                          1
Error: REC tag at (1) is incompatible with list directed format (*)
## Intel ##
fortcom: Error: foo.f90, line 1: There is a direction conflict for this I/O
access operation.
    read(5,FMT=*,REC=10) I
-----------------^
fortcom: Warning: foo.f90, line 1: This name has not been given an explicit
type.   [I]
    read(5,FMT=*,REC=10) I
-------------------------^
compilation aborted for foo.f90 (code 1)
## Portland ##
## Sun ##

    read(5,FMT=*,REC=10) I
               ^
"foo.f90", Line = 1, Column = 16: ERROR: If REC= is present, the format must
not be list-directed in a READ statement.


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-invalid-code
   Last reconfirmed|0000-00-00 00:00:00         |2005-11-26 19:38:34
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25067

Reply via email to