PATCH: Add a testcase for PR c++/35240

H.J. Lu hongjiu.lu@intel.com
Wed Apr 1 15:56:00 GMT 2009


Hi,

PR c++/35240 was fixed by an unrelated patch before 4.4 was branched. I
am checking this into trunk and 4.4 branch.


H.J.
---
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 145407)
+++ ChangeLog	(working copy)
@@ -1,3 +1,8 @@
+2009-04-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR c++/35240
+	* g++.dg/template/pr35240.C: New.
+
 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
 
 	PR c/39605
Index: g++.dg/template/pr35240.C
===================================================================
--- g++.dg/template/pr35240.C	(revision 0)
+++ g++.dg/template/pr35240.C	(revision 0)
@@ -0,0 +1,12 @@
+// PR c++/35240
+// { dg-do compile }
+
+
+template<int> struct A {};
+
+template<int N> A<sizeof(new int[N][N])> foo();
+
+void bar()
+{
+  foo<1>();	// { dg-message "unimplemented" }
+}



More information about the Gcc-patches mailing list