summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-17 20:46:59 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-17 20:46:59 +0000
commitd676ce6e4ff28e488be8ee850f738f85b4826e9a (patch)
tree3ef6832378f6f319ee219f8aed85b87126a2c839 /gcc/testsuite/g++.dg
parent9b1969d7f00c77a43d7f80f43f9c38a05cde6205 (diff)
downloadgcc-d676ce6e4ff28e488be8ee850f738f85b4826e9a.tar.gz
/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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127596 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg')
-rw-r--r--gcc/testsuite/g++.dg/template/error26.C5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/error26.C b/gcc/testsuite/g++.dg/template/error26.C
new file mode 100644
index 00000000000..7545762bf34
--- /dev/null
+++ b/gcc/testsuite/g++.dg/template/error26.C
@@ -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" }