// PR c++/94944 // { dg-do compile { target c++11 } } template struct A { void f(); }; template struct B : A { void g() noexcept(noexcept(A::f())); }; int main() { B b; b.g(); }