1 // PR c++/78906 2 // { dg-do compile { target c++14 } } 3 4 template <typename> struct A { static constexpr int digits = 0; }; 5 template <typename> struct B { 6 template <int, typename MaskInt = int, int = A<MaskInt>::digits> 7 static constexpr int XBitMask = 0; 8 }; 9 struct C { 10 using ReferenceHost = B<int>; 11 template <int> static decltype(ReferenceHost::XBitMask<0>) XBitMask; 12 }; main()13int main() { C::XBitMask<0>; } 14