This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/36895] Namelist writting to internal files: Control characters wrong?



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]