// PR c++/54090 template struct X { template = N), typename T = void> struct Y; template struct Y {}; static const int M = n / 2; template struct Y {}; }; void foo() { X<10>::Y<10/2> y; }