1 // PR c++/82029 2 // { dg-do compile { target c++11 } } 3 4 template <typename> struct A { m_fn1A5 void m_fn1() { 6 [] { return __func__; }(); 7 } 8 }; 9 struct B { 10 A<int> a; 11 void m_fn2(); 12 }; m_fn2()13 void B::m_fn2() { a.m_fn1(); } 14