From 97e6200f60515c70a72d6e7a435686315285f7cb Mon Sep 17 00:00:00 2001 From: ebotcazou Date: Tue, 22 Mar 2011 10:26:52 +0000 Subject: [PATCH] * c-ada-spec.c (dump_ada_template): Skip non-class instances. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171283 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/c-family/ChangeLog | 4 ++++ gcc/c-family/c-ada-spec.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) 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++; -- 2.11.4.GIT