re PR fortran/88009 (ICE in find_intrinsic_vtab, at fortran/class.c:2761)
authorJanus Weil <janus@gcc.gnu.org>
Sat, 5 Jan 2019 14:32:12 +0000 (15:32 +0100)
committerJanus Weil <janus@gcc.gnu.org>
Sat, 5 Jan 2019 14:32:12 +0000 (15:32 +0100)
commitf8add009ce300f24b75e9c2e2cc5dd944a020c28
tree5a6cb69b2476a6dcebaa5cce4fc91ee5158c3fd4
parent23141e52419417d34eab8a2976fe417a6041e15e
re PR fortran/88009 (ICE in find_intrinsic_vtab, at fortran/class.c:2761)

2019-01-05  Janus Weil  <janus@gcc.gnu.org>

PR fortran/88009
* class.c (gfc_find_derived_vtab): Mark the _final component as
artificial.
(find_intrinsic_vtab): Ditto. Also add an extra check to avoid
dereferencing a null pointer and adjust indentation.
* resolve.c (resolve_fl_variable): Add extra check to avoid
dereferencing a null pointer. Move variable declarations to local scope.
(resolve_fl_procedure): Add extra check to avoid dereferencing a null
pointer.
* symbol.c (check_conflict): Suppress errors for artificial symbols.

2019-01-05  Janus Weil  <janus@gcc.gnu.org>

PR fortran/88009
* gfortran.dg/blockdata_10.f90: New test case.

From-SVN: r267598
gcc/fortran/ChangeLog
gcc/fortran/class.c
gcc/fortran/resolve.c
gcc/fortran/symbol.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/blockdata_10.f90 [new file with mode: 0644]