[Patch, fortran] PR34945 - LBOUND fails for array with KIND(complex) used in zero-sized dimension

Paul Richard Thomas paul.richard.thomas@gmail.com
Sun Feb 3 15:54:00 GMT 2008


: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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submit.diff
Type: text/x-patch
Size: 2436 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20080203/1f1e725f/attachment.bin>


More information about the Fortran mailing list