[Patch, Fortran, OOP] PR 46838: Initialization of polymorphic allocatable components
Tobias Burnus
burnus@net-b.de
Wed Dec 29 15:48:00 GMT 2010
Hello Janus,
Janus Weil wrote:
> the attached patch fixes the subject line PR by making
> 'gfc_default_initializer' handle CLASS components properly. Regtested
> on x86_64-unknown-linux-gnu. Ok for trunk?
OK. Thanks for the patch.
Note: The ICE mentioned in comment 1 is still present. (Add "(:)" to
"indxmap" in the example in comment 1. The scalar version compiles and
the wrong-code issue is fixed with your patch; the array version still
gives the internal compiler error.)
Tobias
> 2010-12-28 Janus Weil<janus@gcc.gnu.org>
>
> PR fortran/46838
> * expr.c (gfc_default_initializer): Handle allocatable CLASS components.
>
>
> 2010-12-28 Janus Weil<janus@gcc.gnu.org>
>
> PR fortran/46838
> * gfortran.dg/alloc_comp_class_2.f90: New.
More information about the Gcc-patches
mailing list