[patch] Testcase for PR c++/11406
Volker Reichelt
reichelt@igpm.rwth-aachen.de
Mon Jul 5 11:12:00 GMT 2004
The following patch adds a testcase for a long-standing problem that was
fixed on mainline by Mark's patch
http://gcc.gnu.org/ml/gcc-cvs/2004-06/msg00888.html
Committed to mainline as obvious.
Regards,
Volker
2004-07-05 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/11406
* g++.dg/template/sizeof8.C: New test.
Index: g++.dg/template/sizeof8.C
===================================================================
RCS file: g++.dg/template/sizeof8.C
diff -N g++.dg/template/sizeof8.C
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ g++.dg/template/sizeof8.C 5 Jul 2004 10:30:39 -0000
@@ -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>();
More information about the Gcc-patches
mailing list