1 // PR c++/61135
2 // { dg-do compile { target c++14 } }
3 
4 struct A
5 {
funcAA6   int funcA(){return 0;}
7 };
8 
9 template<class>
10 struct B:virtual public A{
funcBB11   void funcB(){
12     [a=this->funcA()]{};
13   }
14 };
15 
main()16 int main()
17 {
18   B<A> b;
19   b.funcB();
20   return 0;
21 }
22