Commit eddd291e by H.J. Lu Committed by H.J. Lu

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
parent 6ccb2a4a
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
......
// 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" }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment