]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Sat, 19 Mar 2005 12:26:36 +0000 (12:26 +0000)
committerNo Author <no-author@gcc.gnu.org>
Sat, 19 Mar 2005 12:26:36 +0000 (12:26 +0000)
'gcc-3_4-branch'.

From-SVN: r96723

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

diff --git a/gcc/testsuite/g++.dg/template/crash36.C b/gcc/testsuite/g++.dg/template/crash36.C
new file mode 100644 (file)
index 0000000..2f0ef92
--- /dev/null
@@ -0,0 +1,9 @@
+// { dg-do compile }
+
+// Origin: Ivan Godard <igodard@pacbell.net>
+//        Andrew Pinski <pinskia@gcc.gnu.org>
+
+// PR c++/20333: ICE parsing typename without nested-name-specifier
+
+template<class> struct f {};
+f<int> f2[2] = {typename f<int>()};    // { dg-error "" }