// { dg-do compile { target c++11 } } template struct is_function { static constexpr bool value = false; }; template struct is_function { static constexpr bool value = true; }; template struct enable_if {}; template struct enable_if { typedef T type; }; template struct remove_pointer { typedef T type; }; template struct remove_pointer { typedef T type; }; void f(int) {} void f(double) {} template struct X { template ::type>::value, bool>::type = false> X(U&&) {} }; int main() { X x0(f); }