1 // PR c++/49520
2 // { dg-options -std=c++0x }
3 
4 namespace x { void foo(); }
5 
6 template<typename T>
7 struct traits
8 {
ftraits9     static constexpr bool f() { return true; }
10 
gtraits11     static constexpr bool g()
12     {
13         using x::foo;
14         return f() && noexcept(foo());
15     }
16 };
17 
18 template struct traits<int>;
19