This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/33421] New: Weird quotation of namelist output of character arrays.
- From: "toon at moene dot indiv dot nluug dot nl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Sep 2007 18:36:30 -0000
- Subject: [Bug libfortran/33421] New: Weird quotation of namelist output of character arrays.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This program:
character*20 a(3)
namelist / nam / a
read (4, nml=nam)
write(6, nml=nam)
end
given the following input (fort.4):
&nam
a(1)='aap noot mies wim zus jet',
a(2)='surf.pressure',
a(3)='apekool',
/
produces the following output:
&NAM
A=aap noot mies wim zu,a(2)='surf.pressure',a(3)='apekool' , /
This mixing of quoted and unquoted strings cannot be correct. The a(2) and
a(3) are weird.
--
Summary: Weird quotation of namelist output of character arrays.
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libfortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: toon at moene dot indiv dot nluug dot nl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33421