https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92587
--- Comment #15 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Tobias Burnus <bur...@gcc.gnu.org>: https://gcc.gnu.org/g:b7be64f9079dee9f326c791bcec1897047ae0de5 commit r9-9150-gb7be64f9079dee9f326c791bcec1897047ae0de5 Author: Tobias Burnus <tob...@codesourcery.com> Date: Thu Dec 17 10:39:09 2020 +0100 Fortran: Delay vtab generation until after parsing [PR92587] gcc/fortran/ChangeLog: PR fortran/92587 * match.c (gfc_match_assignment): Move gfc_find_vtab call from here ... * resolve.c (gfc_resolve_code): ... to here. gcc/testsuite/ChangeLog: PR fortran/92587 * gfortran.dg/finalize_37.f90: New test. (cherry picked from commit ba9fa684053917a07bfa8f4742da0e196e72b9a2)