This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36895] Namelist writting to internal files: Control characters wrong?
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jul 2008 01:39:32 -0000
- Subject: [Bug fortran/36895] Namelist writting to internal files: Control characters wrong?
- References: <bug-36895-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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