:ADDPATCH fortran:
This is one of the four remaining "F95" bugs. Again, the problem is
due to jumping the gun and trying to do checks before expressions are
resolved. Here, the check for negative array size was moved from
matching to resolution, so that we can be sure that every expression
that can be simplified has had it done.
Bootstraps and regtests on x86_ia64 - OK for 4.4 when it opens?
Cheers
Paul
2008-02-03 Paul Thomas <pault@gcc.gnu.org>
PR fortran/34945
* array.c (match_array_element_spec): Remove check for negative
array size.
(gfc_resolve_array_spec): Add check for negative size.
2008-02-03 Paul Thomas <pault@gcc.gnu.org>
PR fortran/34945
* gfortran.dg/bounds_check_13.f: New test.