https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59016
--- Comment #8 from drikosev at otenet dot gr ---
When gfortran reports the error, it expects that the name 'atomic_kind_type' is
likely a procedure or function; but the syntax of the access-stmt is:
access-stmt ::= access-spec [ [ :: ] access-id-list ]
access-id ::= use-name | generic-spec
access-spec::=
Each use-name shall be the name of a named variable, procedure, derived type,
named constant, or namelist group.
Perhaps, a more accurate error message could be:
PUBLIC :: atomic_kind_type
1
Error: Undefined use-name 'atomic_kind_type' in access statement at (1)