aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/ptree.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2009-07-04 22:09:15 -0400
committerJason Merrill <jason@gcc.gnu.org>2009-07-04 22:09:15 -0400
commiteb5c3f052a57f3b14c24848d6a195d96f0a6bbef (patch)
treef4ac00f6323e57653d33af03809113217cdd5479 /gcc/cp/ptree.c
parentbf15d4697d6d4605699730e286f822ed27ff180d (diff)
downloadgcc-eb5c3f052a57f3b14c24848d6a195d96f0a6bbef.zip
gcc-eb5c3f052a57f3b14c24848d6a195d96f0a6bbef.tar.gz
gcc-eb5c3f052a57f3b14c24848d6a195d96f0a6bbef.tar.bz2
pt.c (retrieve_specialization): Don't get confused by a using-declaration that brings in another instance of...
* pt.c (retrieve_specialization): Don't get confused by a using-declaration that brings in another instance of this template from a base class. * ptree.c (cxx_print_type): Fix logic. From-SVN: r149247
Diffstat (limited to 'gcc/cp/ptree.c')
-rw-r--r--gcc/cp/ptree.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c
index ec7a471..69279cd 100644
--- a/gcc/cp/ptree.c
+++ b/gcc/cp/ptree.c
@@ -91,6 +91,10 @@ cxx_print_type (FILE *file, tree node, int indent)
print_node (file, "throws", TYPE_RAISES_EXCEPTIONS (node), indent + 4);
return;
+ case RECORD_TYPE:
+ case UNION_TYPE:
+ break;
+
default:
return;
}