repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
template
/
array3.C
blob
27d72f972b03541b9348d3eb64da0960e7ba9d5e
1
// { dg-do compile }
2
// Origin: Graeme Prentice <gprentice at paradise dot net dot nz>
3
// PR c++/13474: An array domain which is value-dependent must be folded
4
// in time for deduction.
5
6
template< int X, int Y, int (*array_ptr)[Y] >
7
class A;
8
9
int array[5];
10
11
template< int X >
12
class A<X,5,&array> {};
13
14
int main()
15
{
16
A<6,5,&array> z1;
17
}