]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/28114 (ICE with struct definition in argument of template function)
authorSteve Ellcey <sje@cup.hp.com>
Wed, 12 Jul 2006 21:47:58 +0000 (21:47 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Wed, 12 Jul 2006 21:47:58 +0000 (21:47 +0000)
PR c++/28114
* g++.dg/other/pr28114.C: New.

From-SVN: r115398

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/pr28114.C [new file with mode: 0644]

index 232732f78dd9db5e661407df8fec3e32bf0fdd6f..088a3af63340e98da60cbf4c25ff15ee13a33cec 100644 (file)
@@ -1,3 +1,8 @@
+2006-07-12  Steve Ellcey  <sje@cup.hp.com>
+
+       PR c++/28114
+       * g++.dg/other/pr28114.C: New.
+
 2007-07-11  Lee Millward  <lee.millward@gmail.com>
 
        PR c++/28051
diff --git a/gcc/testsuite/g++.dg/other/pr28114.C b/gcc/testsuite/g++.dg/other/pr28114.C
new file mode 100644 (file)
index 0000000..05aeebb
--- /dev/null
@@ -0,0 +1,9 @@
+
+// Test to make sure we do not ICE on this invalid program.
+
+template<int> void foo(struct {}*); // { dg-error "" }
+
+void bar()
+{
+  foo<0>(0); // { dg-error "" }
+}