[Patch, fortran] PR25054 - namelist objects with non-constant shape.
Paul Thomas
paulthomas2@wanadoo.fr
Wed Feb 15 17:50:00 GMT 2006
:ADDPATCH fortran:
This is a "quickie" to cure PR25054 in which namelist objects with
non-constant
shape were allowed. This was accomplished by separating existing code to
detect non-constant shape arrays into a new function, which is called by
existing conditions as well as a loop through namelist objects. I took the
opportunity to continue the spring-cleaning of resolve_symbol by lifting the
chunk of code dealing with FL_NAMELIST into its own function.
Regtested on FC3/Athlon: OK for trunk?
Paul
2006-02-15 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.
2006-02-15 Paul Thomas <pault@gcc.gnu.org>
PR fortran/25054
* gfortran.dg/namelist_5.f90: New test.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: namelist_5.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20060215/b002800e/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: namelist_5.f90
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20060215/b002800e/attachment.f90>
More information about the Fortran
mailing list