]> 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>
Mon, 26 Jun 2006 21:25:23 +0000 (21:25 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Mon, 26 Jun 2006 21:25:23 +0000 (21:25 +0000)
PR c++/28114
* g++.dg/other/pr28114.C: New.

From-SVN: r115025

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

index f1e1480f00860be55e95bbd482fdd51a56fd9aa6..8dc800201d5689c81cf66441c3c4cff220318420 100644 (file)
@@ -1,3 +1,8 @@
+2006-06-26  Steve Ellcey  <sje@cup.hp.com>
+
+       PR c++/28114
+       * g++.dg/other/pr28114.C: New.
+
 2006-06-25  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gcc.c-torture/compile/20060625-1.c: New test.
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 "" }
+}