diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2011-03-22 10:26:52 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2011-03-22 10:26:52 +0000 |
commit | d1d879b1f457f88bde4053b39606f698e7c3cc94 (patch) | |
tree | 0b6018403f2b6333c55cd36a27569bbcc2ce280c /gcc | |
parent | f2f81d570826c20c299a3509d1b0866f0e9a9afd (diff) | |
download | gcc-d1d879b1f457f88bde4053b39606f698e7c3cc94.zip gcc-d1d879b1f457f88bde4053b39606f698e7c3cc94.tar.gz gcc-d1d879b1f457f88bde4053b39606f698e7c3cc94.tar.bz2 |
* c-ada-spec.c (dump_ada_template): Skip non-class instances.
From-SVN: r171283
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-family/ChangeLog | 4 | ||||
-rw-r--r-- | 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 5ac5792..597aeef 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,7 @@ +2011-03-22 Eric Botcazou <ebotcazou@adacore.com> + + * 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 335acb0..8b9e93a 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++; |