From: Eric Botcazou Date: Tue, 22 Mar 2011 10:26:52 +0000 (+0000) Subject: * c-ada-spec.c (dump_ada_template): Skip non-class instances. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1d879b1f457f88bde4053b39606f698e7c3cc94;p=gcc.git * c-ada-spec.c (dump_ada_template): Skip non-class instances. From-SVN: r171283 --- diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 5ac57926a67..597aeefd388 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,7 @@ +2011-03-22 Eric Botcazou + + * c-ada-spec.c (dump_ada_template): Skip non-class instances. + 2011-03-17 Kai Tietz PR target/12171 diff --git a/gcc/c-family/c-ada-spec.c b/gcc/c-family/c-ada-spec.c index 335acb0e325..8b9e93a2097 100644 --- a/gcc/c-family/c-ada-spec.c +++ b/gcc/c-family/c-ada-spec.c @@ -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++;