// PR c++/84045 // { dg-do compile { target c++11 } } template struct K { static const bool d = true; }; template struct B { typedef K D; void foo () noexcept (D::d); }; template struct P { P () noexcept (K::d); }; P p;