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

--- Comment #13 from kargls at comcast dot net ---
(In reply to anlauf from comment #11)
> Created attachment 58926 [details]
> Patch
> 
> This patch applies the check of the declared type in resolve_array_list,
> where there is already a check for unlimited polymorphic elements.
> 
> Will submit if it regtests ok.

Looks good except don't you also need to check c->expr->ts.type == BT_DERIVED.

One can have

type, abstract :: a
...
end type a

Or, does the 'abstract' attribute cause gfortran to use BT_CLASS?

Reply via email to