re PR c++/35240 (ICE with new in template parameter)

2009-04-01  H.J. Lu  <hongjiu.lu@intel.com>

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

From-SVN: r145408
This commit is contained in:
H.J. Lu 2009-04-01 15:56:29 +00:00 committed by H.J. Lu
parent 6ccb2a4a4b
commit eddd291e26
2 changed files with 17 additions and 0 deletions

View 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

View File

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