diff options
author | Janus Weil <janus@gcc.gnu.org> | 2013-12-15 10:49:51 +0100 |
---|---|---|
committer | Janus Weil <janus@gcc.gnu.org> | 2013-12-15 10:49:51 +0100 |
commit | 013a961bacc2aacc34f27b786a5f191fbfe094c4 (patch) | |
tree | 2dfa78681db12296cf1838534bc34d8a8eaa28ea /gcc/fortran/class.c | |
parent | 5fbcd8d405e54e30b4a5a747d4162e3c2d194d93 (diff) | |
download | gcc-013a961bacc2aacc34f27b786a5f191fbfe094c4.zip gcc-013a961bacc2aacc34f27b786a5f191fbfe094c4.tar.gz gcc-013a961bacc2aacc34f27b786a5f191fbfe094c4.tar.bz2 |
re PR fortran/59493 ([OOP] ICE: Segfault on Class(*) pointer association)
2013-12-15 Janus Weil <janus@gcc.gnu.org>
PR fortran/59493
* class.c (gfc_find_intrinsic_vtab): Handle BT_CLASS.
2013-12-15 Janus Weil <janus@gcc.gnu.org>
PR fortran/59493
* gfortran.dg/unlimited_polymorphic_15.f90: New.
From-SVN: r205997
Diffstat (limited to 'gcc/fortran/class.c')
-rw-r--r-- | gcc/fortran/class.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/class.c b/gcc/fortran/class.c index 52b9760..b65cd89 100644 --- a/gcc/fortran/class.c +++ b/gcc/fortran/class.c @@ -2424,7 +2424,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. */ |