[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / array8.C
blob9fd33a4aa7df795e57051f3ad2e607fd332bbf5d
1 // PR c++/18121
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
8 template<int> struct A
10     static int const i = 1;
13 template<int N> struct B
15     typedef int (*p)[A<N>::i];