Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/lambda-ice2.C

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