// { dg-do compile { target c++11 } } // { dg-options "-g" } template struct R { using type = T; }; template F r(typename R::type f) { return f; } template void s(F) {} template void t(F f) { s(r(f)); } template struct S {}; template struct P { constexpr static bool value = false; }; template void g() { constexpr static bool H = P::value; using X = S; []() -> X { t([]{}); return X{}; }(); } int main() { g(); }