]> gcc.gnu.org Git - gcc.git/commit
PR fortran/96381 - invalid read in gfc_find_derived_vtab
authorHarald Anlauf <anlauf@gmx.de>
Fri, 1 Jan 2021 17:55:41 +0000 (18:55 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Fri, 1 Jan 2021 17:55:41 +0000 (18:55 +0100)
commitd816b0c144d15e6570eb5b124b9f3ccbe3d40082
tree92e08a0115ba67d320a8ddca8bca7d633f4f63fd
parent4b24d500f4ca5cefbeeca2a6924d1ebdc180b184
PR fortran/96381 - invalid read in gfc_find_derived_vtab

An invalid declaration of a CLASS instance can lead to an internal state
with inconsistent attributes during parsing that needs to be handled with
sufficient care when processing subsequent statements.  Avoid a lookup of
the vtab entry for such cases.

gcc/fortran/ChangeLog:

* class.c (gfc_find_vtab): Add check on attribute is_class.
gcc/fortran/class.c
This page took 0.055752 seconds and 6 git commands to generate.