Fortran] Reject invalid association target (PR93363)
authorTobias Burnus <tobias@codesourcery.com>
Fri, 27 Mar 2020 09:56:25 +0000 (10:56 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Fri, 27 Mar 2020 09:56:25 +0000 (10:56 +0100)
commita76ff304f905db9fd9b049c2ca4ec84f0420da53
treea7b6a275cb723dea9c325d1ce614cb69403966c1
parent2eea00c518d5a72d0bdbc810ae675e7ad5fee414
Fortran] Reject invalid association target (PR93363)

PR fortran/93363
* resolve.c (resolve_assoc_var): Reject association to DT and
function name.

PR fortran/93363
* gfortran.dg/associate_51.f90: Fix test case.
* gfortran.dg/associate_53.f90: New.
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/associate_51.f90
gcc/testsuite/gfortran.dg/associate_53.f90 [new file with mode: 0644]