re PR fortran/29397 (Constant logical expression with parameter array)
authorPaul Thomas <pault@gcc.gnu.org>
Tue, 8 May 2007 11:58:25 +0000 (11:58 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Tue, 8 May 2007 11:58:25 +0000 (11:58 +0000)
commita9b43781dbc0c38ea33062cd96825defbcb1ca2d
tree51128533ef6fb2920b355241338a655d8bf897aa
parenta6d99bb44a3fd7c3bcfb402dc89ae7b3979073c0
re PR fortran/29397 (Constant logical expression with parameter array)

2007-05-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/29397
PR fortran/29400
* decl.c (add_init_expr_to_sym): Expand a scalar initializer
for a parameter array into an array expression with the right
shape.
* array.c (spec_dimen_size): Remove static attribute.
* gfortran.h : Prototype for spec_dimen_size.

2007-05-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/29397
* gfortran.dg/parameter_array_init_1.f90: New test.

PR fortran/29400
* gfortran.dg/parameter_array_init_2.f90: New test.

From-SVN: r124541
gcc/fortran/ChangeLog
gcc/fortran/array.c
gcc/fortran/decl.c
gcc/fortran/gfortran.h
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/parameter_array_init_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/parameter_array_init_2.f90 [new file with mode: 0644]