Fortran] PR 92994 – add more ASSOCIATE checks
authorTobias Burnus <tobias@codesourcery.com>
Fri, 3 Jan 2020 08:08:30 +0000 (08:08 +0000)
committerTobias Burnus <burnus@gcc.gnu.org>
Fri, 3 Jan 2020 08:08:30 +0000 (09:08 +0100)
commit4d124378848e82e58f1349b44822cc7b1210de1e
treea639757f5a1c9424f7007323e1bec9db3de8c610
parent208cb81f98da659cca6e9b8bfec524e3f5aaffcf
Fortran] PR 92994 – add more ASSOCIATE checks

        PR fortran/92994
        * primary.c (gfc_match_rvalue): Add some flavor checks
        gfc_matching_procptr_assignment.
        * resolve.c (resolve_assoc_var): Add more checks for invalid targets.

        PR fortran/92994
        * gfortran.dg/associate_50.f90: Update dg-error.
        * gfortran.dg/associate_51.f90: New.

From-SVN: r279853
gcc/fortran/ChangeLog
gcc/fortran/primary.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/associate_50.f90
gcc/testsuite/gfortran.dg/associate_51.f90 [new file with mode: 0644]