https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67740

--- Comment #10 from anlauf at gcc dot gnu.org ---
(In reply to anlauf from comment #9)

Addendum:

> I was suspecting gfc_conv_variable as a possibly further place for a fix:
> it has a loop over ref's that looks incomplete for REF_COMPONENT.

I tried my version of a patch in that place, which worked for the testcases
here but gave wrong code already for slightly more complex pointer assignments,
like

  type(pointer_typec0_t) :: co, xo
...
  xo%data1 => co%data1

so let's go with your patch.

Reply via email to