// PR c++/49520 // { dg-do compile { target c++11 } } namespace x { void foo(); } template struct traits { static constexpr bool f() { return true; } static constexpr bool g() { using x::foo; return f() && noexcept(foo()); } }; template struct traits;