]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/35240 (ICE with new in template parameter)
authorH.J. Lu <hongjiu.lu@intel.com>
Wed, 1 Apr 2009 15:56:29 +0000 (15:56 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Wed, 1 Apr 2009 15:56:29 +0000 (08:56 -0700)
2009-04-01  H.J. Lu  <hongjiu.lu@intel.com>

PR c++/35240
* g++.dg/template/pr35240.C: New.

From-SVN: r145408

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

index 16d9340017987cb5846cdd4b40b14668446693a2..7cd559f664169bfe28e1c998d3f10cdf5b0a0e9a 100644 (file)
@@ -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
diff --git a/gcc/testsuite/g++.dg/template/pr35240.C b/gcc/testsuite/g++.dg/template/pr35240.C
new file mode 100644 (file)
index 0000000..de82897
--- /dev/null
@@ -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" }
+}