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 2011-03-17 Kai Tietz
PR target/12171 PR target/12171
......
...@@ -1681,8 +1681,8 @@ dump_template_types (pretty_printer *buffer, tree types, ...@@ -1681,8 +1681,8 @@ dump_template_types (pretty_printer *buffer, tree types,
} }
} }
/* Dump in BUFFER the contents of all instantiations associated with a given /* Dump in BUFFER the contents of all class instantiations associated with
template T. CPP_CHECK is used to perform C++ queries on nodes. a given template T. CPP_CHECK is used to perform C++ queries on nodes.
SPC is the indentation level. */ SPC is the indentation level. */
static int static int
...@@ -1701,7 +1701,7 @@ dump_ada_template (pretty_printer *buffer, tree t, ...@@ -1701,7 +1701,7 @@ dump_ada_template (pretty_printer *buffer, tree t,
if (TREE_VEC_LENGTH (types) == 0) if (TREE_VEC_LENGTH (types) == 0)
break; break;
if (!TYPE_METHODS (instance)) if (!TYPE_P (instance) || !TYPE_METHODS (instance))
break; break;
num_inst++; 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