// PR c++/59655 // { dg-do compile { target c++11 } } template struct A { static constexpr bool value = false; }; struct B { template B (T t) { static_assert (A::value, "baz"); // { dg-error "static assertion failed" } foo (t); } template void foo (T) {} // { dg-bogus "used but never defined" } }; int main () { B t([](int) { }); }