https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93483
--- Comment #12 from anlauf at gcc dot gnu.org ---
(In reply to Mikael Morin from comment #11)
> Here is an example, where the array simplifies using the host-associated
> parameter value instead of calling the contained function with the same name
> hiding it. It is admittedly somewhat artificial.
But it is a valid (counter-)example ... :-(
Symptoms: invalid declarations, such as
real :: b(1) = [ real :: (a(1)) ]
or
real, parameter :: b(1) = [ real :: (a(1)) ]
are not diagnosed, also not by the Intel compiler, but by NAG:
Error: pr93483-mm.f90, line 6: Reference to non-intrinsic function A in
constant expression
So this looks like a can of worms...