------- Comment #1 from mikael at gcc dot gnu dot org 2008-12-26 22:54 ------- About the second error:
See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33497#c3 in resolve.c: 2095 else if (parent_ref != NULL && parent_ref->type != REF_COMPONENT) 2096 gfc_internal_error ("Unexpected expression reference type in " 2097 "gfc_iso_c_func_interface"); we expect either a terminating component ref, or a component ref followed by a terminating array or substring ref. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38536