This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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" }
+}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]