1// PR c++/51318 2 3enum { e0, e1 }; 4 5template<bool B, int = B ? e0 : e1> struct A {}; 6 7template<typename T> struct B 8{ 9 A<T::X> a; 10}; 11