This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]