diff options
author | Paolo Carlini <pcarlini@suse.de> | 2007-08-17 20:46:59 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2007-08-17 20:46:59 +0000 |
commit | 2658bdae42e21b940d224b30f0448ef3207a29f0 (patch) | |
tree | 3ef6832378f6f319ee219f8aed85b87126a2c839 /gcc/cp | |
parent | 9c79ad8bf8e3bb5fc7c8d9738906df28c852ef7d (diff) | |
download | gcc-2658bdae42e21b940d224b30f0448ef3207a29f0.zip gcc-2658bdae42e21b940d224b30f0448ef3207a29f0.tar.gz gcc-2658bdae42e21b940d224b30f0448ef3207a29f0.tar.bz2 |
re PR c++/32112 (#'unbound_class_template' not supported by dump_decl#)
/cp
2007-08-17 Paolo Carlini <pcarlini@suse.de>
PR c++/32112
* error.c (dump_decl): Deal with UNBOUND_CLASS_TEMPLATE.
* cxx-pretty-print.c (pp_cxx_unqualified_id): Likewise.
/testsuite
2007-08-17 Paolo Carlini <pcarlini@suse.de>
PR c++/32112
* g++.dg/template/error26.C: New.
From-SVN: r127596
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/cxx-pretty-print.c | 1 | ||||
-rw-r--r-- | gcc/cp/error.c | 4 |
3 files changed, 11 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 15e1819..f01075d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,11 @@ 2007-08-17 Paolo Carlini <pcarlini@suse.de> + PR c++/32112 + * error.c (dump_decl): Deal with UNBOUND_CLASS_TEMPLATE. + * cxx-pretty-print.c (pp_cxx_unqualified_id): Likewise. + +2007-08-17 Paolo Carlini <pcarlini@suse.de> + PR c++/32870 * parser.c (cp_parser_class_head): Improve error message. diff --git a/gcc/cp/cxx-pretty-print.c b/gcc/cp/cxx-pretty-print.c index 1b15102..18983a4 100644 --- a/gcc/cp/cxx-pretty-print.c +++ b/gcc/cp/cxx-pretty-print.c @@ -206,6 +206,7 @@ pp_cxx_unqualified_id (cxx_pretty_printer *pp, tree t) break; case TYPENAME_TYPE: + case UNBOUND_CLASS_TEMPLATE: pp_cxx_unqualified_id (pp, TYPE_NAME (t)); break; diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 404fbd0..53d8223 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -962,6 +962,10 @@ dump_decl (tree t, int flags) pp_type_id (cxx_pp, t); break; + case UNBOUND_CLASS_TEMPLATE: + dump_type (t, flags); + break; + default: pp_unsupported_tree (cxx_pp, t); /* Fall through to error. */ |