------- Comment #5 from pault at gcc dot gnu dot org 2007-01-31 09:26 ------- Dear All,
This is yet another derived type association problem in trans-types.c(gfc_get_derived_type). If you insert a "use foo_type_mod" in module foo_mod, the problem goes away. I believe the INTENT(OUT) changes the order in which the different references to type foo_type are visited; I believe one of them, most likely in the interface, is not being registered in the namespace. I will investigate further - it's a matter o perspiration now, rather than inspiration. Paul -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30531