diff options
Diffstat (limited to 'gcc/fortran/class.c')
-rw-r--r-- | gcc/fortran/class.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/fortran/class.c b/gcc/fortran/class.c index 08705c7..d6847eb 100644 --- a/gcc/fortran/class.c +++ b/gcc/fortran/class.c @@ -2277,6 +2277,9 @@ gfc_find_derived_vtab (gfc_symbol *derived) if (!derived) return NULL; + if (!derived->name) + return NULL; + /* Find the gsymbol for the module of use associated derived types. */ if ((derived->attr.use_assoc || derived->attr.used_in_submodule) && !derived->attr.vtype && !derived->attr.is_class) |