re PR c++/13474 (fail to compile non type argument specialization of pointer to array of int)
PR c++/13474 * g++.dg/template/array3.C: New test. From-SVN: r75778
This commit is contained in:
parent
cdf4ac6f04
commit
451aeff70d
@ -1,3 +1,8 @@
|
||||
2004-01-13 Giovanni Bajo <giovannibajo@gcc.gnu.org>
|
||||
|
||||
PR c++/13474
|
||||
* g++.dg/template/array3.C: New test.
|
||||
|
||||
2004-01-12 Zack Weinberg <zack@codesourcery.com>
|
||||
|
||||
* g++.dg/ext/lvalue1.C: No longer expected to fail.
|
||||
|
17
gcc/testsuite/g++.dg/template/array3.C
Normal file
17
gcc/testsuite/g++.dg/template/array3.C
Normal file
@ -0,0 +1,17 @@
|
||||
// { dg-do compile }
|
||||
// Origin: Graeme Prentice <gprentice at paradise dot net dot nz>
|
||||
// PR c++/13474: An array domain which is value-dependent must be folded
|
||||
// in time for deduction.
|
||||
|
||||
template< int X, int Y, int (*array_ptr)[Y] >
|
||||
class A;
|
||||
|
||||
int array[5];
|
||||
|
||||
template< int X >
|
||||
class A<X,5,&array> {};
|
||||
|
||||
int main()
|
||||
{
|
||||
A<6,5,&array> z1;
|
||||
}
|
Loading…
Reference in New Issue
Block a user