https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87673
--- Comment #1 from Paul Thomas <pault at gcc dot gnu.org> --- I Have just noticed that the problem goes away for 6-branch through trunk is the order of the contained procedures is changed. This points a finger at parse.c/primary.c or the resolution of contained functions. Paul