// PR c++/84813 // { dg-do compile } // { dg-options "-g -std=c++14" } template struct P {}; template struct F { using type = int; }; template void apply () { constexpr int N = T::N; [] (typename F::type) { auto f = [] () {}; P{}; }; } struct A { static constexpr int N = 1; }; void instantiate () { apply (); }