[Bug fortran/59016] f951: internal compiler error: Segmentation fault

drikosev at otenet dot gr gcc-bugzilla@gcc.gnu.org
Sun Mar 29 22:02:00 GMT 2015


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)



More information about the Gcc-bugs mailing list