[patch,fortran] PR32928 DATA statement with array element as initializer is rejected

Tobias Burnus burnus@net-b.de
Mon Nov 26 14:43:00 GMT 2007


Jerry DeLisle wrote:
> Jerry DeLisle wrote:
>> :ADDPATCH fortran:
>>
>> The attached patch fixes this by using gfc_match_init_expr in
>> match_data_constant and thereby matching the array specifier given in
>> the test case.  This is then simplified and comes out a nice
>> BT_CONSTANT.  Magic!
>>
>> Regression tested on x86-64.
>> OK for trunk?
> The attached revised patch catches some invalids pointed out by Tobias
> Burnus on IRC.
> OK to commit?
OK. Don't forget to commit also data_array_1.f90 of the first patch email.

+	  gfc_error ("Invalid initializer %s in Data statement at %C", name);

I would use DATA rather than "Data".


Thanks for the patch,

Tobias



More information about the Fortran mailing list