------- Comment #3 from burnus at gcc dot gnu dot org 2010-06-01 14:01 ------- The issue seems to be parse.c's gfc_fixup_sibling_symbols - the the following seems to exclude (use-associated) module variables and (use-associated) functions from being fixed up:
&& !(old_sym->attr.external || (old_sym->ts.type != BT_UNKNOWN && !old_sym->attr.implicit_type) Maybe one should check for use-association here? That is: || old_sym->attr.use_assoc. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44360