[Patch, fortran] PR34476 - Parameters: Bogus out of bounds error in array constructor

Paul Richard Thomas paul.richard.thomas@gmail.com
Tue Jan 8 16:05:00 GMT 2008


:ADDPATCH fortran:

This is an entirely trivial fix that is self-explanatory.  The
testcase is the reporter's.

Regtested on Cygwin_NT - OK for trunk?

Paul

2008-01-08  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34476
	* expr.c (find_array_element): Check that the array bounds are
	constant before using them.  Use lower, as well as upper bound.
	(check_restricted): Allow implied index variable.

2008-01-08  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34476
	* gfortran.dg/parameter_array_init_3.f90: New test.



-- 
The knack of flying is learning how to throw yourself at the ground and miss.
       --Hitchhikers Guide to the Galaxy
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: submit.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20080108/674e1fd9/attachment.ksh>


More information about the Fortran mailing list