]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran] PR91586 Fix ICE on invalid code with CLASS
authorTobias Burnus <tobias@codesourcery.com>
Fri, 18 Oct 2019 12:38:26 +0000 (12:38 +0000)
committerTobias Burnus <burnus@gcc.gnu.org>
Fri, 18 Oct 2019 12:38:26 +0000 (14:38 +0200)
commit412f7637d16c6e791e2787fd667ff4a8dcafcadb
tree93ea0dfc8c813971bfa6b7bf8fff8109182ceff1
parent3c6c71fcdafd1cd8cb0c51d4dc54e6e3782c2f14
Fortran] PR91586 Fix ICE on invalid code with CLASS

        gcc/fortran/
        Backport from mainline
        2019-10-18  Tobias Burnus  <tobias@codesourcery.com>

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

        gcc/testsuite/
        Backport from mainline
        2019-10-18  Tobias Burnus  <tobias@codesourcery.com>

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

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