http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48588
--- Comment #6 from Mikael Morin <mikael at gcc dot gnu.org> 2011-04-19 10:27:29 UTC --- (In reply to comment #5) > The following seems to mostly work. I think some double resolving could happen > - thus, one might need to tweak resolve_all_program_units. Either this or we have to delay module code generation as well. I can't tell whether double resolving is a problem. But I think resolving too early may be problematic as one can miss references to global procedures if they are defined later in the same file.