[patch, fortran] PR33152 Initialization/declaration problems in block data

Jerry DeLisle jvdelisle@verizon.net
Sun Nov 25 11:22:00 GMT 2007


:ADDPATCH fortran]

The attached patch resolves the issues (several variations) identified in the PR.

The patch removes wrong error messages and adds a new one.  Fairly self explanatory.

New test case provided.

Regression tested on x86-64-unknown-linux-gnu.

OK for trunk?

Jerry

2007-11-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/33152
	* decl.c (add_init_expr_to_sym): Remove error message.
	* resolve.c (check_data_variable): Add new check for a data variable
	that has an array spec, but no ref and issue an error.
	* match.c (gfc_match_common): Remove error message.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr33152.diff
Type: text/x-patch
Size: 1861 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20071125/fdc8339e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: blockdata_4.f90
Type: text/x-fortran
Size: 610 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20071125/fdc8339e/attachment-0001.bin>


More information about the Fortran mailing list