This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/41539] Calling function which takes CLASS: Rank comparison does not work
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Oct 2009 08:42:32 -0000
- Subject: [Bug fortran/41539] Calling function which takes CLASS: Rank comparison does not work
- References: <bug-41539-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from burnus at gcc dot gnu dot org 2009-10-02 08:42 -------
I think the problem occurs in decl.c's
static gfc_try
encapsulate_class_symbol (gfc_typespec *ts, symbol_attribute *attr,
gfc_array_spec **as)
{
[...]
if (fclass == NULL)
{
[...]
c->attr.dimension = attr->dimension;
c->as = (*as);
}
[...]
attr->allocatable = attr->pointer = attr->dimension = 0;
(*as) = NULL; /* XXX */
[...]
}
which is called as:
if (sym->ts.type == BT_CLASS)
encapsulate_class_symbol (&sym->ts, &sym->attr, &sym->as);
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41539