// PR c++/98899 // { dg-do compile { target c++11 } } template struct integral_constant { static constexpr int value = __v; }; struct S { template struct B { B() noexcept(noexcept(x)); int x; }; struct A : B { A() : B() {} }; }; struct S2 { template struct B { B() noexcept(integral_constant::value); }; struct A : B { A() : B() {} }; }; struct S3 { template struct B { B() noexcept(b); }; struct A : B { A() : B() {} }; static constexpr bool b = false; };