summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-17 21:31:40 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-17 21:31:40 +0000
commit61b5da6f073dd5959e0119ad3f3fa5c6c8c41799 (patch)
treee50e6466d7f8ddaf1d28e9ece06f1087190035d5
parentd676ce6e4ff28e488be8ee850f738f85b4826e9a (diff)
downloadgcc-61b5da6f073dd5959e0119ad3f3fa5c6c8c41799.tar.gz
2007-08-17 Paolo Carlini <pcarlini@suse.de>
PR c++/32190 * g++.dg/parse/error31.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127597 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/parse/error31.C12
2 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 7326e7dd128..e08a3272c34 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2007-08-17 Paolo Carlini <pcarlini@suse.de>
+ PR c++/32190
+ * g++.dg/parse/error31.C: New.
+
+2007-08-17 Paolo Carlini <pcarlini@suse.de>
+
PR c++/32112
* g++.dg/template/error26.C: New.
diff --git a/gcc/testsuite/g++.dg/parse/error31.C b/gcc/testsuite/g++.dg/parse/error31.C
new file mode 100644
index 00000000000..5264f442b31
--- /dev/null
+++ b/gcc/testsuite/g++.dg/parse/error31.C
@@ -0,0 +1,12 @@
+// PR c++/32190
+
+template<typename T> class foo{ };
+
+int main() {
+ foo<int> i;
+ foo<foo<int> j; // { dg-error "template argument" }
+ int k;
+ int l;
+ foo<int> m;
+ return 0;
+ }