OSDN Git Service

PR c++/28114
authorsje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Jun 2006 21:25:23 +0000 (21:25 +0000)
committersje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Jun 2006 21:25:23 +0000 (21:25 +0000)
* g++.dg/other/pr28114.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115025 138bc75d-0d04-0410-961f-82ee72b054a4

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

index f1e1480..8dc8002 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 "" }
+}