☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
lambda-ice2.C
☽
☼
gcc/testsuite/g++.dg/cpp1y/lambda-ice2.C
code
plain
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
}