summaryrefslogtreecommitdiff
path: root/gcc/fortran/class.c
diff options
context:
space:
mode:
authorburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-25 17:34:39 +0000
committerburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-25 17:34:39 +0000
commit324be76cab2966c529cb9d478d010f4a65fd43da (patch)
tree57df87f21f14e09a462a4846106036f7f01dadea /gcc/fortran/class.c
parent807e0fc20ce8b7e80b597c5046f51d34d5c648d1 (diff)
downloadgcc-324be76cab2966c529cb9d478d010f4a65fd43da.tar.gz
2012-01-25 Tobias Burnus <burnus@net-b.de>
PR fortran/51995 * class.c (gfc_build_class_symbol): Ensure that fclass->f2k_derived is set. 2012-01-25 Tobias Burnus <burnus@net-b.de> PR fortran/51995 * gfortran.dg/typebound_proc_25.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183528 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/class.c')
-rw-r--r--gcc/fortran/class.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/fortran/class.c b/gcc/fortran/class.c
index 5e5de1400e6..92cfef76d6c 100644
--- a/gcc/fortran/class.c
+++ b/gcc/fortran/class.c
@@ -421,6 +421,8 @@ gfc_build_class_symbol (gfc_typespec *ts, symbol_attribute *attr,
c->attr.access = ACCESS_PRIVATE;
c->attr.pointer = 1;
}
+ else if (!fclass->f2k_derived)
+ fclass->f2k_derived = fclass->components->ts.u.derived->f2k_derived;
/* Since the extension field is 8 bit wide, we can only have
up to 255 extension levels. */