// PR c++/68926 // { dg-do compile { target c++11 } } struct true_type { static constexpr bool value = true; }; struct false_type { static constexpr bool value = false; }; template struct enable_if { using type = void; }; template<> struct enable_if { }; template struct is_same : false_type { }; template struct is_same : true_type { }; template typename enable_if::value>::type func(); template)> true_type test(T); false_type test(...); int main() { decltype(test(0))::value; // ok decltype(test(0.f))::value; // error }