https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64945
Bug ID: 64945 Summary: Structure constructors and non-NULL-data-targets and polymorphic pointer components Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: pault at gcc dot gnu.org Follow up to PR64757 and https://gcc.gnu.org/ml/fortran/2015-02/msg00022.html The patch for PR64757 handles polymorphic allocatable components with structure constructors. [Somewhat related PR50438, PR39988, PR49213] I am pretty sure, we need to do likewise with pointer components (class => class but also class <-> type). (See also raw patch at PR39988, which I haven't checked what exactly it fixes.)