[Patch, fortran-dev] ALLOCATE statements with CLASS variables

Janus Weil janus@gcc.gnu.org
Thu Sep 24 14:59:00 GMT 2009


> here is yet another version of the ALLOCATE patch. I now moved all the
> initialization code form resolve_allocate_expr to gfc_trans_allocate,
> where the whole thing can be done a bit simpler (and one avoids
> certain problems).
>
> For this I had to make 'expr_to_initialize' non-static. Consequently,
> I should probably add a 'gfc_' prefix to its name.
>
> The SIZE problem is still not solved (see below), but I added a
> warning for the problematic cases (which is triggered by Salvatore's
> code, for example). I haven't checked in detail if the second problem
> I mentioned earlier persists.
>
> Maybe I will just commit the patch in the attached form today, and
> take care of the remaining problems later.

Committed as r152123. The branch is free of regressions now (this
patch killed the last one).

Cheers,
Janus



More information about the Fortran mailing list