re PR c++/34273 (Broken diagnostic: 'tree_binfo' not supported by dump_decl)
authorPaolo Carlini <pcarlini@suse.de>
Sun, 2 Dec 2007 16:58:34 +0000 (16:58 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 2 Dec 2007 16:58:34 +0000 (16:58 +0000)
/cp
2007-12-02  Paolo Carlini  <pcarlini@suse.de>

        PR c++/34273
        * error.c (dump_decl): Handle TREE_BINFO.

/testsuite
2007-12-02  Paolo Carlini  <pcarlini@suse.de>

        PR c++/34273
        * g++.dg/other/error21.C: New.

From-SVN: r130570

gcc/cp/ChangeLog
gcc/cp/error.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/error21.C [new file with mode: 0644]

index 494c98f418ada998e3ac011aff2c251cebfe9812..4a8b907025dafe10d91947b85360c550d0a36f5c 100644 (file)
@@ -1,3 +1,8 @@
+2007-12-02  Paolo Carlini  <pcarlini@suse.de>
+
+        PR c++/34273
+        * error.c (dump_decl): Handle TREE_BINFO.
+
 2007-12-01  Ollie Wild  <aaw@google.com>
 
        PR c++/8171
index 9446f2aa0c3d6e57f15a0db46974d99ebb0815a7..230d03fbce4de7880d1b0ea727a7efdf86487568 100644 (file)
@@ -956,6 +956,7 @@ dump_decl (tree t, int flags)
 
     case UNBOUND_CLASS_TEMPLATE:
     case TYPE_PACK_EXPANSION:
+    case TREE_BINFO:
       dump_type (t, flags);
       break;
 
index 5015c3d6b6ceaac442fae68bfad995c657954074..00ca04936785d229488ba169da8842d0aa6c8973 100644 (file)
@@ -1,3 +1,8 @@
+2007-12-02  Paolo Carlini  <pcarlini@suse.de>
+
+        PR c++/34273
+        * g++.dg/other/error21.C: New.
+
 2007-12-02  Revital Eres  <eres@il.ibm.com>
 
        * gcc.dg/sms-4.c: New testcase.
diff --git a/gcc/testsuite/g++.dg/other/error21.C b/gcc/testsuite/g++.dg/other/error21.C
new file mode 100644 (file)
index 0000000..e4d14ea
--- /dev/null
@@ -0,0 +1,8 @@
+// PR c++/34273
+
+struct A {};
+
+struct B : A
+{
+  B() : A()... {} // { dg-error "cannot expand" }
+};