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:
parent
9c79ad8bf8
commit
2658bdae42
5 changed files with 21 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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. */
|
||||
|
|
|
@ -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
|
||||
|
|
5
gcc/testsuite/g++.dg/template/error26.C
Normal file
5
gcc/testsuite/g++.dg/template/error26.C
Normal 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" }
|
Loading…
Add table
Reference in a new issue