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 8template<int> struct A 9{ 10 static int const i = 1; 11}; 12 13template<int N> struct B 14{ 15 typedef int (*p)[A<N>::i]; 16}; 17