https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59104
--- Comment #5 from Paul Thomas <pault at gcc dot gnu.org> --- Created attachment 58275 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58275&action=edit "Fix" for this PR This patch causes regressions in dependent_decls_1.f90 and mapping_[1,2].f90. However, it demonstrates that the cause of this PR is that the symbols arriving in gfc_trans_deferred_vars must be treated in an order that respects dependencies or, perhaps better, declaration order. Paul