re PR fortran/40853 (I/O: Namelist read error)

2009-08-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/40853
	* io/list_read.c (nml_get_obj_data): Do not set nl
	pointer to first_nl if nl->next is NULL.

From-SVN: r150476
This commit is contained in:
Jerry DeLisle 2009-08-05 03:15:18 +00:00
parent 0b7b30ff0a
commit 451a2c55e3
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2009-08-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/40853
* io/list_read.c (nml_get_obj_data): Do not set nl
pointer to first_nl if nl->next is NULL.
2009-07-22 Release Manager
* GCC 4.4.1 released.

View File

@ -2772,7 +2772,7 @@ get_name:
if (nl->type == GFC_DTYPE_DERIVED)
nml_touch_nodes (nl);
if (component_flag && nl->var_rank > 0)
if (component_flag && nl->var_rank > 0 && nl->next)
nl = first_nl;
/* Make sure no extraneous qualifiers are there. */