summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-12-02 16:58:34 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-12-02 16:58:34 +0000
commit95540e6999144a5dba7472cbd02d2d72ff2de54b (patch)
treebe413911c830e14fc8b79cea9bdd831e5eb6927b /gcc
parent6cbef2fcf8e991ce7eddb3c811e1c7d480ace0ef (diff)
downloadppe42-gcc-95540e6999144a5dba7472cbd02d2d72ff2de54b.tar.gz
ppe42-gcc-95540e6999144a5dba7472cbd02d2d72ff2de54b.zip
/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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130570 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/error.c1
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/other/error21.C8
4 files changed, 19 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 494c98f418a..4a8b907025d 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index 9446f2aa0c3..230d03fbce4 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -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;
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 5015c3d6b6c..00ca0493678 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
index 00000000000..e4d14eab60e
--- /dev/null
+++ b/gcc/testsuite/g++.dg/other/error21.C
@@ -0,0 +1,8 @@
+// PR c++/34273
+
+struct A {};
+
+struct B : A
+{
+ B() : A()... {} // { dg-error "cannot expand" }
+};
OpenPOWER on IntegriCloud