[patch, fortran] Fix PR35779 + some cleanup

Daniel Franke franke.daniel@gmail.com
Thu May 13 12:28:00 GMT 2010


Hi all.

Attached patch is mostly cleanup, the actual fix is in array.c 
(match_array_list), where the gfc_init_expr_flag needed to be passed on to 
generate a sensible error message.


gcc/fortran/:
2010-05-13  Daniel Franke  <franke.daniel@gmail.com>

	PR fortran/35779
	* intrinsic.c (gfc_init_expr): Renamed to gfc_init_expr_flag.
	Updated all usages.
	* expr.c (init_flag): Removed; use gfc_init_expr_flag everywhere.
	* array.c (match_array_list): Pass on gfc_init_expr_flag when matching
	iterators.

gcc/testsuite/:
2010-05-13  Daniel Franke  <franke.daniel@gmail.com>

	PR fortran/35779
	* gfortran.dg/initialization_25.f90: New.


Regression tested on i686-pc-linux-gnu.
Ok for trunk?

	Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr35779.diff
Type: text/x-patch
Size: 5591 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100513/36a6fcef/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: initialization_25.f90
Type: text/x-fortran
Size: 318 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100513/36a6fcef/attachment-0001.bin>


More information about the Fortran mailing list