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:
Giovanni Bajo 2004-01-13 01:07:02 +00:00
parent cdf4ac6f04
commit 451aeff70d
2 changed files with 22 additions and 0 deletions

View File

@ -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.

View 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;
}