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
This commit is contained in:
Paolo Carlini 2007-08-17 20:46:59 +00:00 committed by Paolo Carlini
parent 9c79ad8bf8
commit 2658bdae42
5 changed files with 21 additions and 0 deletions

View file

@ -1,3 +1,9 @@
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

View file

@ -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;

View file

@ -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. */

View file

@ -1,3 +1,8 @@
2007-08-17 Paolo Carlini <pcarlini@suse.de>
PR c++/32112
* g++.dg/template/error26.C: New.
2007-08-17 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
PR fortran/33079

View file

@ -0,0 +1,5 @@
// PR c++/32112
template<typename> struct A;
template<typename T> void foo (A<&T::template i>); // { dg-error "T::template i|mismatch|& T::i" }