summaryrefslogtreecommitdiffstats
path: root/gcc/fortran/symbol.c
diff options
context:
space:
mode:
authordomob <domob@138bc75d-0d04-0410-961f-82ee72b054a4>2009-12-08 11:39:20 +0000
committerdomob <domob@138bc75d-0d04-0410-961f-82ee72b054a4>2009-12-08 11:39:20 +0000
commit4b68c8f791fda8f94422fbeadf6b3490e90bcd23 (patch)
tree97e379b084f6fe3298f9879b4b2d00a044c7693f /gcc/fortran/symbol.c
parent0340c2bd47cc2f632d0a7b700686ccf6bc02cbb9 (diff)
downloadppe42-gcc-4b68c8f791fda8f94422fbeadf6b3490e90bcd23.tar.gz
ppe42-gcc-4b68c8f791fda8f94422fbeadf6b3490e90bcd23.zip
2008-12-08 Daniel Kraft <d@domob.eu>
PR fortran/41177 * gfortran.dg/typebound_proc_4.f03: Remove check for wrong error. * gfortran.dg/typebound_proc_13.f03: New test. 2008-12-08 Daniel Kraft <d@domob.eu> PR fortran/41177 * gfortran.h (struct symbol_attribute): New flag `class_pointer'. * symbol.c (gfc_build_class_symbol): Set the new flag. * resolve.c (update_compcall_arglist): Remove wrong check for non-scalar base-object. (check_typebound_baseobject): Add the correct version here as well as some 'not implemented' message check in the old case. (resolve_typebound_procedure): Check that the passed-object dummy argument is scalar, non-pointer and non-allocatable as it should be. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155086 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/symbol.c')
-rw-r--r--gcc/fortran/symbol.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/fortran/symbol.c b/gcc/fortran/symbol.c
index 6dd0a8afa0f..08477c4f577 100644
--- a/gcc/fortran/symbol.c
+++ b/gcc/fortran/symbol.c
@@ -4681,6 +4681,7 @@ gfc_build_class_symbol (gfc_typespec *ts, symbol_attribute *attr,
c->ts.type = BT_DERIVED;
c->attr.access = ACCESS_PRIVATE;
c->ts.u.derived = ts->u.derived;
+ c->attr.class_pointer = attr->pointer;
c->attr.pointer = attr->pointer || attr->dummy;
c->attr.allocatable = attr->allocatable;
c->attr.dimension = attr->dimension;
OpenPOWER on IntegriCloud