]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/33210 (Broken diagnostics: 'bound_template_template_parm' not supported...
authorPaolo Carlini <pcarlini@suse.de>
Wed, 5 Sep 2007 10:40:29 +0000 (10:40 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 5 Sep 2007 10:40:29 +0000 (10:40 +0000)
/cp
2007-09-05  Paolo Carlini  <pcarlini@suse.de>

PR c++/33210
* cxx-pretty-print.c (pp_cxx_unqualified_id): Deal with
BOUND_TEMPLATE_TEMPLATE_PARM.

/testsuite
2007-09-05  Paolo Carlini  <pcarlini@suse.de>

PR c++/33210
* g++.dg/template/error30.C: New.

From-SVN: r128125

gcc/cp/ChangeLog
gcc/cp/cxx-pretty-print.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/error30.C [new file with mode: 0644]

index b1ce8eb5a86acd5d1569aa4ce61a5f00ebdbd8ac..25806cee78d7997e6801a2ef6630d7281f5fb3dd 100644 (file)
@@ -1,3 +1,9 @@
+2007-09-05  Paolo Carlini  <pcarlini@suse.de>
+
+       PR c++/33210
+       * cxx-pretty-print.c (pp_cxx_unqualified_id): Deal with
+       BOUND_TEMPLATE_TEMPLATE_PARM.
+
 2007-09-04  Jason Merrill  <jason@redhat.com>
 
        PR c++/14032
index 944ee4f2ff86b01d35b9421eb09b356708d9e61b..01200e53e8ea269a0266d99f32fea76cded49f9d 100644 (file)
@@ -207,6 +207,14 @@ pp_cxx_unqualified_id (cxx_pretty_printer *pp, tree t)
       pp_cxx_unqualified_id (pp, TYPE_NAME (t));
       break;
 
+    case BOUND_TEMPLATE_TEMPLATE_PARM:
+      pp_cxx_cv_qualifier_seq (pp, t);
+      pp_cxx_unqualified_id (pp, TYPE_IDENTIFIER (t));
+      pp_cxx_begin_template_argument_list (pp);
+      pp_cxx_template_argument_list (pp, TYPE_TI_ARGS (t));
+      pp_cxx_end_template_argument_list (pp);
+      break;
     default:
       pp_unsupported_tree (pp, t);
       break;
index f24c8cf96002999b7575d078726ff4019da70d23..93adf99bb5564cf5d1384097b845728a90c630e4 100644 (file)
@@ -1,3 +1,8 @@
+2007-09-05  Paolo Carlini  <pcarlini@suse.de>
+
+       PR c++/33210
+       * g++.dg/template/error30.C: New.
+
 2007-08-31  Paolo Carlini  <pcarlini@suse.de>
 
        PR c++/32113
diff --git a/gcc/testsuite/g++.dg/template/error30.C b/gcc/testsuite/g++.dg/template/error30.C
new file mode 100644 (file)
index 0000000..e1138d0
--- /dev/null
@@ -0,0 +1,5 @@
+// PR c++/33210
+
+template<int> struct A;
+
+template<template<typename> class B> A<B<int>::x> operator() (); // { dg-error "A<B<int>::x>" }