Commit b3560209 by Jerry DeLisle

re PR libfortran/33253 (namelist: reading back a string with apostrophe)

2007-09-03  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/33253
	* io/list_read.c (read_character): Use DELIM_APOSTROPHE and DELIM_QUOTE
	in check of first character in string.

From-SVN: r128057
parent ae6cd761
2007-09-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/33253
* io/list_read.c (read_character): Use DELIM_APOSTROPHE and DELIM_QUOTE
in check of first character in string.
2007-09-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> 2007-09-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
PR fortran/31675 PR fortran/31675
......
...@@ -887,7 +887,9 @@ read_character (st_parameter_dt *dtp, int length __attribute__ ((unused))) ...@@ -887,7 +887,9 @@ read_character (st_parameter_dt *dtp, int length __attribute__ ((unused)))
goto get_string; goto get_string;
default: default:
if (dtp->u.p.namelist_mode) if (dtp->u.p.namelist_mode
&& (dtp->u.p.current_unit->flags.delim == DELIM_APOSTROPHE
|| dtp->u.p.current_unit->flags.delim == DELIM_QUOTE))
{ {
unget_char (dtp,c); unget_char (dtp,c);
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment