re PR c++/11406 (sorry+ICE: `array_ref' not supported by dump_type)
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Mon, 5 Jul 2004 10:31:54 +0000 (10:31 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Mon, 5 Jul 2004 10:31:54 +0000 (10:31 +0000)
PR c++/11406
* g++.dg/template/sizeof8.C: New test.

From-SVN: r84111

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

index 82c559d4341c8317a5c35c1c0ca408fc2cd0c4d2..3b0a5d1b2c953e1c44f7914a5580ea84724642b4 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>();