2 // { dg-do compile { target c++14 } }
6 template <typename F, typename R, typename T>
7 static auto run (F fn, R, T) { auto r = fn (); } // { dg-error "" }
9 template <typename F, typename T>
12 A <0>::run (fn, 0, 0);
19 virtual void bar (const int &);
23 typedef typename C::D::G G;
27 struct J { struct K {}; };
33 typedef decltype (s) L;
34 auto u =[&](L) { auto t = foo (J::K (), 0); }; // { dg-error "25:declared void" }