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?
Consider:
program p
type t
character(3) :: c = '(a)'
end type
class(t), parameter :: x = t()
class(*), parameter :: y = t()
print x%c
end
Intel accepts the code, and I haven't found anything prohibiting the above.
F2018 has:
C850 An entity with the PARAMETER attribute shall not be a variable, a coarray,
or a procedure.
I think we see here an area where gfortran lacks newer features.
We shouldn't simply reject PARAMETER and CLASS.
(There are a couple of related PRs.)