diff options
author | Paolo Carlini <pcarlini@suse.de> | 2007-12-02 16:58:34 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2007-12-02 16:58:34 +0000 |
commit | 06be4f564b5ba917d651788eb166780fc1961ec8 (patch) | |
tree | be413911c830e14fc8b79cea9bdd831e5eb6927b | |
parent | 19cfe6c08d165bc4e63e3cd5b22779aafdaa2024 (diff) | |
download | gcc-06be4f564b5ba917d651788eb166780fc1961ec8.zip gcc-06be4f564b5ba917d651788eb166780fc1961ec8.tar.gz gcc-06be4f564b5ba917d651788eb166780fc1961ec8.tar.bz2 |
re PR c++/34273 (Broken diagnostic: 'tree_binfo' not supported by dump_decl)
/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
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/error.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/other/error21.C | 8 |
4 files changed, 19 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 494c98f..4a8b907 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 9446f2a..230d03f 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 5015c3d..00ca049 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 0000000..e4d14ea --- /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" } +}; |