1 // PR c++/77338 2 // { dg-do compile { target c++11 } } 3 4 struct S; 5 6 template <typename> 7 auto f (S s) -> decltype (s (s)); // { dg-error "no match for call to" } 8