===================================================================
@@ -1681,8 +1681,8 @@ dump_template_types (pretty_printer *buf
}
}
-/* 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 *buffe
if (TREE_VEC_LENGTH (types) == 0)
break;
- if (!TYPE_METHODS (instance))
+ if (!TYPE_P (instance) || !TYPE_METHODS (instance))
break;
num_inst++;