https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105243
--- Comment #6 from Steve Kargl <sgk at troutmask dot apl.washington.edu> --- On Mon, May 16, 2022 at 10:16:51PM +0000, sgk at troutmask dot apl.washington.edu wrote: > 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. > I'll also add 7.3.2.3 CLASS type specifier The CLASS type specifier is used to declare polymorphic entities. A polymorphic entity is a data entity that is able to be of differing dynamic types during program execution. Does is make sense to given a named constant the polymorphic property?