Hi Mark,
Might need
gfc_reduce_init_expr (e);
here. The kind type parameter should be a constant expression.
Not needed. I've also checked use of the kind argument, it is evidently
checked elsewhere: if k is allowed to be implicitly declared and is used
as the kind argument errors are reported that it is not a constant, if
implicit declaration is not allowed a "has no IMPLICIT type" error is
produced.
Is there a test case that covers this already? OK if such a test
case exists, also OK with such a test case (or if looking for it
is too bother :-)
Regards
Thomas