https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90352

--- Comment #4 from Paul Thomas <pault at gcc dot gnu.org> ---
Hi Thomas,

>  if the type is character, interoperability also requires that the length
> type parameter be omitted or be specified by an initialization
> expression whose value is one. 
> 
> F2008, 15.3.2 has the same language, as does F2018, 18.3.1.

I found this as well - thanks. I will restore the error by will restrict it to
scalar entities.

> 
> While no diagnostic is required (not a constraint), it is an error,
> and it would be good to flag it as such.
> 
> [I'll look up the array part later]

I am sure that the array part is OK. Otherwise, why have a type code for
strings?

I guess scalars can be handled by passing to an assumed rank array.

Cheers

Paul

Reply via email to