mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-22 20:01:22 -05:00
backport: re PR c++/35240 (ICE with new in template parameter)
2009-04-01 H.J. Lu <hongjiu.lu@intel.com> Backport from mainline: 2009-04-01 H.J. Lu <hongjiu.lu@intel.com> PR c++/35240 * g++.dg/template/pr35240.C: New. From-SVN: r145409
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
2009-04-01 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
Backport from mainline:
|
||||
2009-04-01 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR c++/35240
|
||||
* g++.dg/template/pr35240.C: New.
|
||||
|
||||
2009-04-01 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR c/37772
|
||||
|
||||
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" }
|
||||
}
|
||||
Reference in New Issue
Block a user