[Bug fortran/68442] ICE on kind specification, depending on ordering of functions
jvdelisle at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 21 04:02:00 GMT 2016
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
More information about the Gcc-bugs
mailing list