PR c++/11406
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jul 2004 10:31:54 +0000 (10:31 +0000)
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jul 2004 10:31:54 +0000 (10:31 +0000)
* g++.dg/template/sizeof8.C: New test.

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

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

index 82c559d..3b0a5d1 100644 (file)
@@ -1,3 +1,8 @@
+2004-07-05  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
+
+       PR c++/11406
+       * g++.dg/template/sizeof8.C: New test.
+
 2004-07-05  Richard Sandiford  <rsandifo@redhat.com>
 
        * gcc.c-torture/compile/20040705-1.c: New test.
diff --git a/gcc/testsuite/g++.dg/template/sizeof8.C b/gcc/testsuite/g++.dg/template/sizeof8.C
new file mode 100644 (file)
index 0000000..f3069f0
--- /dev/null
@@ -0,0 +1,9 @@
+// { dg-do compile }
+// Testcase by: bangerth@dealii.org
+// PR c++/11406: ICE
+
+template <int> struct S{};
+
+template <int N> S<sizeof(new double[N])> f() {}
+
+template S<4> f<2>();