------- Comment #4 from jvdelisle at gcc dot gnu dot org 2008-07-23 01:39 ------- I have reviewed our code.
First, we reject the internal unit for namelist when using -std=f95. $ gfc -std=f95 pr36895.f90 pr36895.f90:4.8: write(line,nml=stuff) 1 Error: Fortran 2003: Internal file at (1) with namelist Second, our namelist write function makes its own cr-lf sequences and does not use next_record so all the checks for end of record are not used. Normally you can have multiple records with internal units only if it is a character array, one record per array element. I will fix this. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36895