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

--- Comment #5 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to Dominique d'Humieres from comment #4)
> Related to pr69397. With the patch in pr69397 comment 2, the ICE is replaced
> with the error:
> 
> pr68442.f90:7:21:
> 
>        character(kind=gkind()) :: x
>                      1
> 
> Error: There is no specific function for the generic 'gkind' at (1)
> 
> When I applied the patch, I was not happy with this message: it points to
> the problem, but IMO with a wrong diagnostic.

I am currently getting:

$ gfc pr68442.f90 
pr68442.f90:10:21:

       character(kind=gkind()) :: x
                     1

Error: Function ‘gkind’ in initialization expression at (1) must be an
intrinsic function

Reply via email to