diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-03-22 10:26:52 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-03-22 10:26:52 +0000 |
commit | 97e6200f60515c70a72d6e7a435686315285f7cb (patch) | |
tree | 0b6018403f2b6333c55cd36a27569bbcc2ce280c /gcc/c-family/c-ada-spec.c | |
parent | 00044e9440ebd1518c33bae9da5da99ea23c2347 (diff) | |
download | gcc-97e6200f60515c70a72d6e7a435686315285f7cb.tar.gz |
* 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
Diffstat (limited to 'gcc/c-family/c-ada-spec.c')
-rw-r--r-- | gcc/c-family/c-ada-spec.c | 6 |
1 files changed, 3 insertions, 3 deletions
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++; |