]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/32190 (wrong error recovery on parsing template arguments)
authorPaolo Carlini <paolo@gcc.gnu.org>
Fri, 17 Aug 2007 21:38:19 +0000 (21:38 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 17 Aug 2007 21:38:19 +0000 (21:38 +0000)
2007-08-17  Paolo Carlini  <pcarlini@suse.de>

PR c++/32190
* g++.dg/parse/error31.C: New.

From-SVN: r127598

gcc/testsuite/g++.dg/parse/error31.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/parse/error31.C b/gcc/testsuite/g++.dg/parse/error31.C
new file mode 100644 (file)
index 0000000..5264f44
--- /dev/null
@@ -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;
+    }