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:
parent
6ccb2a4a4b
commit
eddd291e26
@ -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
|
||||
|
12
gcc/testsuite/g++.dg/template/pr35240.C
Normal file
12
gcc/testsuite/g++.dg/template/pr35240.C
Normal 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" }
|
||||
}
|
Loading…
Reference in New Issue
Block a user