diff options
author | Janus Weil <janus@gcc.gnu.org> | 2011-10-07 16:40:14 +0200 |
---|---|---|
committer | Janus Weil <janus@gcc.gnu.org> | 2011-10-07 16:40:14 +0200 |
commit | 58eba515913ec98edcf090389599ae25f4704ea1 (patch) | |
tree | b58b5a3ae62500a26783062c14befc760498b995 /gcc/fortran/module.c | |
parent | 14307a72de032f77c30f44486d570892268c5026 (diff) | |
download | gcc-58eba515913ec98edcf090389599ae25f4704ea1.zip gcc-58eba515913ec98edcf090389599ae25f4704ea1.tar.gz gcc-58eba515913ec98edcf090389599ae25f4704ea1.tar.bz2 |
re PR fortran/50625 ([OOP] ALLOCATABLE attribute lost for module CLASS variables)
2011-10-07 Janus Weil <janus@gcc.gnu.org>
PR fortran/50625
* class.c (gfc_build_class_symbol): Fix whitespace.
* module.c (mio_symbol): Set 'class_ok' attribute.
* trans-decl.c (gfc_get_symbol_decl): Make sure the backend_decl has
been built for class symbols.
2011-10-07 Janus Weil <janus@gcc.gnu.org>
PR fortran/50625
* gfortran.dg/class_46.f03: New.
From-SVN: r179660
Diffstat (limited to 'gcc/fortran/module.c')
-rw-r--r-- | gcc/fortran/module.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c index b29ba4b..c8a377d 100644 --- a/gcc/fortran/module.c +++ b/gcc/fortran/module.c @@ -3608,6 +3608,8 @@ mio_symbol (gfc_symbol *sym) mio_symbol_attribute (&sym->attr); mio_typespec (&sym->ts); + if (sym->ts.type == BT_CLASS) + sym->attr.class_ok = 1; if (iomode == IO_OUTPUT) mio_namespace_ref (&sym->formal_ns); |