mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-25 11:54:01 +08:00
re PR libfortran/37707 (Namelist read of array of derived type incorrect)
2008-10-08 Jerry DeLisle <jvdelisle@gcc.gnu.org PR libfortran/37707 * io/list_read.c (nml_get_obj_data): If the first namelist object rank is greater than zero, call nml_object_read with the first object rather than the sub-object. From-SVN: r140995
This commit is contained in:
parent
e481f79556
commit
22a6009350
@ -1,3 +1,10 @@
|
||||
2008-10-08 Jerry DeLisle <jvdelisle@gcc.gnu.org
|
||||
|
||||
PR libfortran/37707
|
||||
* io/list_read.c (nml_get_obj_data): If the first namelist object rank is
|
||||
greater than zero, call nml_object_read with the first object rather
|
||||
than the sub-object.
|
||||
|
||||
2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
|
||||
Steve Ellcey <sje@cup.hp.com>
|
||||
|
||||
|
@ -2839,6 +2839,9 @@ get_name:
|
||||
goto nml_err_ret;
|
||||
}
|
||||
|
||||
if (first_nl != NULL && first_nl->var_rank > 0)
|
||||
nl = first_nl;
|
||||
|
||||
if (nml_read_obj (dtp, nl, 0, pprev_nl, nml_err_msg, nml_err_msg_size,
|
||||
clow, chigh) == FAILURE)
|
||||
goto nml_err_ret;
|
||||
|
Loading…
Reference in New Issue
Block a user