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 libfortran/37707] Namelist read of array of derived type incorrect



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


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