2 // { dg-do compile { target c++14 } }
3 // permissiveness doesn't make this permitted
4 // { dg-additional-options "-fpermissive" }
6 // ICE because we attempt to use dependent Foo during error recovery
7 // and die with an unexpected this capture need.
9 template <typename T> struct Base
14 template <typename T> struct A : Base<T> {
18 template <typename T> void A<T>::b() {
20 auto lam = [&](auto asdf) { Foo (asdf); }; // { dg-error "not declared" }
25 template void A<int>::b ();