// PR c++/34619 // { dg-do compile } template struct A { typedef int X; static const int N = 1; }; template struct B { typedef typename A ::N]>::X Y; template B (Y, U) {} }; int main () { } B b (0, 0);