Fortran] PR91586 Fix ICE on invalid code with CLASS
authorTobias Burnus <tobias@codesourcery.com>
Fri, 18 Oct 2019 12:04:31 +0000 (12:04 +0000)
committerTobias Burnus <burnus@gcc.gnu.org>
Fri, 18 Oct 2019 12:04:31 +0000 (14:04 +0200)
commit7c929c9c611546f0e77753e90b652f7607d06484
tree73440c6f9b18b5954ec7509eb9d56a31bdba1eed
parent15abd9320d4492f58783ac31b9fa651cec7747f3
Fortran] PR91586 Fix ICE on invalid code with CLASS

        gcc/fortran/
        PR fortran/91586
        * class.c (gfc_find_derived_vtab): Return NULL
        instead of deref'ing NULL pointer.

        gcc/testsuite/
        PR fortran/91586
        * gfortran.dg/class_71.f90: New.

From-SVN: r277153
gcc/fortran/ChangeLog
gcc/fortran/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/class_71.f90 [new file with mode: 0644]