// PR c++/98800 // { dg-do compile { target c++11 } } template struct enable_if_t {}; struct tmp { template constexpr bool is_integral(); template static auto func() -> enable_if_t()>; // { dg-error "without object" } }; template constexpr bool tmp::is_integral() { return true; } int main() { tmp::func(); } // { dg-error "no match" }