[Patch, fortran] PR41167 - ICE with PACK() and string concatenation
Paul Richard Thomas
paul.richard.thomas@gmail.com
Sun Jan 24 16:52:00 GMT 2010
This now fixes PR41044 completely, as well.
Okayed by Jerry off list.
Bootstraps and regtests on FC9/x86_64
Cheers
Paul
2010-01-24 Paul Thomas <pault@gcc.gnu.org>
PR fortran/41044
PR fortran/41167
* expr.c (remove_subobject_ref): If the constructor is NULL use
the expression as the source.
(simplify_const_ref): Change the type of expression if
there are component references. Allow for substring to be at
the end of an arbitrarily long chain of references. If an
element is found that is not in an EXPR_ARRAY, assume that this
is scalar initialization of array. Call remove_subobject_ref in
this case with NULL second argument.
2010-01-24 Paul Thomas <pault@gcc.gnu.org>
PR fortran/41044
* gfortran.dg/parameter_array_ref_2.f90 : New test.
PR fortran/41167
* gfortran.dg/char_array_arg_1.f90 : New test.
* gfortran.dg/pr25923.f90 : Remove XFAIL.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submit.diff
Type: text/x-patch
Size: 6576 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100124/95b49854/attachment.bin>
More information about the Fortran
mailing list