Fix error-recovery ICE in check_proc_interface
authorTobias Burnus <burnus@net-b.de>
Fri, 12 Oct 2018 18:13:25 +0000 (20:13 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Fri, 12 Oct 2018 18:13:25 +0000 (20:13 +0200)
commitb4439561c4019cf3bc4c59cc6260d7464917f1e5
treec4412a931256b6cbf19606a293be351d0b3ea9c2
parentd8d3cc098eda75481a13d66f6e04fadffc5cecff
Fix error-recovery ICE in check_proc_interface

        PR fortran/58787
        * decl.c (get_proc_name): Return with error before
        creating sym_tree.

        PR fortran/58787
        * gfortran.dg/goacc/pr77765.f90: Modify dg-error.
        * gfortran.dg/interface_42.f90: Ditto.
        * gfortran.dg/internal_references_1.f90: Ditto.
        * gfortran.dg/invalid_procedure_name.f90: Ditto.
        * gfortran.dg/pr65453.f90: Ditto.
        * gfortran.dg/pr77414.f90: Ditto.
        * gfortran.dg/pr78741.f90: Ditto.
        * gfortran.dg/same_name_2.f90: Ditto.

From-SVN: r265125
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/goacc/pr77765.f90
gcc/testsuite/gfortran.dg/interface_42.f90
gcc/testsuite/gfortran.dg/internal_references_1.f90
gcc/testsuite/gfortran.dg/invalid_procedure_name.f90
gcc/testsuite/gfortran.dg/pr65453.f90
gcc/testsuite/gfortran.dg/pr77414.f90
gcc/testsuite/gfortran.dg/pr78741.f90
gcc/testsuite/gfortran.dg/same_name_2.f90