[Patch, fortran] PR29397 and PR29400 - parameter arrays with scalar initializers
Paul Richard Thomas
paul.richard.thomas@gmail.com
Mon May 7 15:35:00 GMT 2007
:ADDPATCH fortran:
Both these PRs were caused by scalar initializers for parameter arrays
not being expanded into array expressions. Fixing PR29400 required
the correct shape array for the initializer expression, since rank > 1
is involved. The testcases are the reporter's.
Bootstrapped and regtested on x86_ia64/FC5 - OK for trunk?
Paul
2006-05-07 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.
2006-05-07 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.
--
"Success is the ability to go from one failure to another with no loss
of enthusiasm." - Winston Churchill
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr29397.diff
Type: text/x-patch
Size: 4790 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070507/ae44fb60/attachment.bin>
More information about the Fortran
mailing list