// PR c++/60046 // { dg-require-effective-target c++11 } constexpr bool foo () { return noexcept (true); } template struct V { void bar (V &) noexcept (foo ()) {} }; template struct W : public V { void bar (W &x) { V ::bar (x); } }; int main () { W a, b; a.bar (b); }