Fortran: Delay vtab generation until after parsing [PR92587]
authorTobias Burnus <tobias@codesourcery.com>
Thu, 17 Dec 2020 09:39:09 +0000 (10:39 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Thu, 17 Dec 2020 09:39:09 +0000 (10:39 +0100)
commitba9fa684053917a07bfa8f4742da0e196e72b9a2
treec0f9d973ed27ff6aac1ee1d0391abbfff082e0dd
parentc09deceb534b82ce144af3a345dcb06ab5e49ba4
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.
gcc/fortran/match.c
gcc/fortran/resolve.c
gcc/testsuite/gfortran.dg/finalize_37.f90 [new file with mode: 0644]