This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/37707] Namelist read of array of derived type incorrect
- 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: 19 Oct 2008 15:39:44 -0000
- Subject: [Bug libfortran/37707] Namelist read of array of derived type incorrect
- References: <bug-37707-109@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #25 from jvdelisle at gcc dot gnu dot org 2008-10-19 15:39 -------
(In reply to comment #22)
default:
- dtp->u.p.nml_delim = '\0';
+ dtp->u.p.nml_delim = '"';
wouldn't it be easier/faster to simply remove the whole switch and use simply
dtp->u.p.nml_delim = '"';
without special cases for the current delim status?
Yes that would work, but I would like to allow users to use apostrophe if they
wish. How about this?
dtp->u.p.nml_delim = tmp_delim == DELIM_APOSTROPHE ? '\'' : '"';
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37707