re PR fortran/25054 (nonconstant bounds array cannot appear in a namelist)
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 19 Feb 2006 15:24:26 +0000 (15:24 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 19 Feb 2006 15:24:26 +0000 (15:24 +0000)
commit3e1cf50075be169656ce3ce2b9ef33fdcaeb0bb1
tree7e6b3bd04608f088a0f80dc2b3cc893f1bca8e49
parentc05f6d04cb428c8b4e443797b280cae8f005149d
re PR fortran/25054 (nonconstant bounds array cannot appear in a namelist)

2005-02-19  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/25054
* resolve.c (is_non_constant_shape_array): New function.
(resolve_fl_variable): Remove code for the new function and call it.
(resolve_fl_namelist): New function.  Add test for namelist array
with non-constant shape, using is_non_constant_shape_array.
(resolve_symbol): Remove code for resolve_fl_namelist and call it.

PR fortran/25089
* match.c (match_namelist): Increment the refs field of an accepted
namelist object symbol.
* resolve.c (resolve_fl_namelist): Test namelist objects for a conflict
with contained or module procedures.

2005-02-19  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/25054
* gfortran.dg/namelist_5.f90: New test.

PR fortran/25089
* gfortran.dg/namelist_4.f90: New test.

From-SVN: r111268
gcc/fortran/ChangeLog
gcc/fortran/match.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/namelist_4.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/namelist_5.f90 [new file with mode: 0644]