repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
split-path: Fix dump wording about duplicating too many statements
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
array8.C
blob
9fd33a4aa7df795e57051f3ad2e607fd332bbf5d
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
};