re PR c++/61135 (It seems to be not able to call virtual method of literal object...
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / lambda-ice2.C
blob8539de11ed60b969414e1dec0fbfb9e477d0295a
1 // PR c++/61135
2 // { dg-do compile { target c++14 } }
4 struct A
6   int funcA(){return 0;}
7 };
9 template<class>
10 struct B:virtual public A{
11   void funcB(){
12     [a=this->funcA()]{};
13   }
16 int main()
18   B<A> b;
19   b.funcB();
20   return 0;