OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
/cp
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
array8.C
1
// PR c++/18121
2
3
// We were trying to layout the array
4
// type but since the type/value of A<N>::i
5
// was not known at template declation type,
6
// we were crashing
7
8
template<int> struct A
9
{
10
static int const i = 1;
11
};
12
13
template<int N> struct B
14
{
15
typedef int (*p)[A<N>::i];
16
};