diff options
author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2008-07-23 04:29:15 +0000 |
---|---|---|
committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2008-07-23 04:29:15 +0000 |
commit | ac834957b94ca3284c71fabd67e3153a7a0f6dfe (patch) | |
tree | 95da40ffc548f4f78568e908f0ed735ab935d439 | |
parent | b55c64bb536827bcd62494cf8696d0c72e31391b (diff) | |
download | gcc-ac834957b94ca3284c71fabd67e3153a7a0f6dfe.zip gcc-ac834957b94ca3284c71fabd67e3153a7a0f6dfe.tar.gz gcc-ac834957b94ca3284c71fabd67e3153a7a0f6dfe.tar.bz2 |
re PR fortran/36582 (Namelist I/O error: Bogus "Cannot match namelist object")
2008-07-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/36852
* io/list_read.c: If variable rank is zero, do not adjust the found
namelist object pointer.
From-SVN: r138072
-rw-r--r-- | libgfortran/ChangeLog | 6 | ||||
-rw-r--r-- | libgfortran/io/list_read.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index cf55910..2459b53 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,9 @@ +2008-07-22 Jerry DeLisle <jvdelisle@gcc.gnu.org> + + PR fortran/36852 + * io/list_read.c: If variable rank is zero, do not adjust the found + namelist object pointer. + 2008-07-22 Daniel Kraft <d@domob.eu> PR fortran/29835 diff --git a/libgfortran/io/list_read.c b/libgfortran/io/list_read.c index ba8de97..34e2ac0 100644 --- a/libgfortran/io/list_read.c +++ b/libgfortran/io/list_read.c @@ -2791,7 +2791,7 @@ get_name: if (nl->type == GFC_DTYPE_DERIVED) nml_touch_nodes (nl); - if (component_flag) + if (component_flag && nl->var_rank > 0) nl = first_nl; /* Make sure no extraneous qualifiers are there. */ |