From: Jerry DeLisle Date: Thu, 9 Oct 2008 04:02:35 +0000 (+0000) Subject: re PR libfortran/37707 (Namelist read of array of derived type incorrect) X-Git-Tag: releases/gcc-4.4.0~2114 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=22a60093505c0c899e50b347d0e6c86a28c16571;p=thirdparty%2Fgcc.git re PR libfortran/37707 (Namelist read of array of derived type incorrect) 2008-10-08 Jerry DeLisle Steve Ellcey diff --git a/libgfortran/io/list_read.c b/libgfortran/io/list_read.c index bcde3e1d49b4..76634a3ee25c 100644 --- a/libgfortran/io/list_read.c +++ b/libgfortran/io/list_read.c @@ -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;