// PR c++/105518 // { dg-do compile { target c++11 } } struct integral_constant { constexpr operator int() const { return 42; } }; template struct A { using type = A; static constexpr int value = N; }; template void f(T t) { using alias = A; [](int) { typename alias::type a; // { dg-bogus "'t' is not captured" } return a.value; }(0); } template void f(integral_constant);