Commit 451aeff7 by Giovanni Bajo

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
parent cdf4ac6f
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> 2004-01-12 Zack Weinberg <zack@codesourcery.com>
* g++.dg/ext/lvalue1.C: No longer expected to fail. * g++.dg/ext/lvalue1.C: No longer expected to fail.
......
// { 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;
}
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