Commit d1d879b1 by Eric Botcazou Committed by Eric Botcazou

* c-ada-spec.c (dump_ada_template): Skip non-class instances.

From-SVN: r171283
parent f2f81d57
2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
* c-ada-spec.c (dump_ada_template): Skip non-class instances.
2011-03-17 Kai Tietz
PR target/12171
......
......@@ -1681,8 +1681,8 @@ dump_template_types (pretty_printer *buffer, tree types,
}
}
/* Dump in BUFFER the contents of all instantiations associated with a given
template T. CPP_CHECK is used to perform C++ queries on nodes.
/* Dump in BUFFER the contents of all class instantiations associated with
a given template T. CPP_CHECK is used to perform C++ queries on nodes.
SPC is the indentation level. */
static int
......@@ -1701,7 +1701,7 @@ dump_ada_template (pretty_printer *buffer, tree t,
if (TREE_VEC_LENGTH (types) == 0)
break;
if (!TYPE_METHODS (instance))
if (!TYPE_P (instance) || !TYPE_METHODS (instance))
break;
num_inst++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment