https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105243
--- Comment #5 from Steve Kargl <sgk at troutmask dot apl.washington.edu> --- On Mon, May 16, 2022 at 08:27:24PM +0000, anlauf at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105243 > > --- Comment #3 from anlauf at gcc dot gnu.org --- > (In reply to kargl from comment #2) > > This fixes the problem. Someone that regularly use git will need to commit > > it. > > Are you sure this is the right solution? > I quoted the F2018 standard constraint. C708 An entity declared with the CLASS keyword shall be a dummy argument or have the ALLOCATABLE or POINTER attribute. class(t), parameter :: y would seem to be missing all of the three listed attributes.