aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/class.c
diff options
context:
space:
mode:
authorPaul Thomas <pault@gcc.gnu.org>2013-01-27 07:09:06 +0000
committerPaul Thomas <pault@gcc.gnu.org>2013-01-27 07:09:06 +0000
commitaa271860870b642b35b39938fdb39ff30af70c43 (patch)
treefe0ca5f04c7acfc990df2467d358c30147ce59fc /gcc/fortran/class.c
parent170c0f31d1e0080e8dba330d39fb37399df64b76 (diff)
downloadgcc-aa271860870b642b35b39938fdb39ff30af70c43.zip
gcc-aa271860870b642b35b39938fdb39ff30af70c43.tar.gz
gcc-aa271860870b642b35b39938fdb39ff30af70c43.tar.bz2
[multiple changes]
2013-01-27 Paul Thomas <pault@gcc.gnu.org> PR fortran/55789 PR fortran/56047 * gfortran.h : Add associate_var to symbol_attr. * resolve.c (resolve_assoc_var): Set associate_var attribute. If the target class_ok is set, set it for the associate variable. * check.c (allocatable_check): Associate variables should not have the allocatable attribute even if their symbols do. * class.c (gfc_build_class_symbol): Symbols with associate_var set will always have a good class container. 2013-01-27 Paul Thomas <pault@gcc.gnu.org> PR fortran/55789 * gfortran.dg/associate_14.f90: New test. PR fortran/56047 * gfortran.dg/associate_13.f90: New test. From-SVN: r195492
Diffstat (limited to 'gcc/fortran/class.c')
-rw-r--r--gcc/fortran/class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/class.c b/gcc/fortran/class.c
index 9ef30f6..d8e7b6d 100644
--- a/gcc/fortran/class.c
+++ b/gcc/fortran/class.c
@@ -568,7 +568,7 @@ gfc_build_class_symbol (gfc_typespec *ts, symbol_attribute *attr,
return SUCCESS;
attr->class_ok = attr->dummy || attr->pointer || attr->allocatable
- || attr->select_type_temporary;
+ || attr->select_type_temporary || attr->associate_var;
if (!attr->class_ok)
/* We can not build the class container yet. */