☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-const-this.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-const-this.C
code
plain
raw
1
// PR c++/60463
2
// PR c++/60755
3
// { dg-do compile { target c++11 } }
4
struct S {
5
void f();
6
void g() const {
7
[=] { f(); } (); // { dg-error "no match|qualifiers" }
8
// { dg-warning "implicit capture" "" { target c++2a } .-1 }
9
}
10
};