aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/fortran/class.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8/gcc/fortran/class.c')
-rw-r--r--gcc-4.8/gcc/fortran/class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc-4.8/gcc/fortran/class.c b/gcc-4.8/gcc/fortran/class.c
index d8e7b6ded..55c072b82 100644
--- a/gcc-4.8/gcc/fortran/class.c
+++ b/gcc-4.8/gcc/fortran/class.c
@@ -2486,7 +2486,7 @@ gfc_find_intrinsic_vtab (gfc_typespec *ts)
return NULL;
/* Sometimes the typespec is passed from a single call. */
- if (ts->type == BT_DERIVED)
+ if (ts->type == BT_DERIVED || ts->type == BT_CLASS)
return gfc_find_derived_vtab (ts->u.derived);
/* Find the top-level namespace. */