Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice29.C

raw
1 // PR c++/84618
2 // { dg-do compile { target c++11 } }
3
4 template <int>
5 struct S {
6 void b() const;
7 void b() { [b] {}; } // { dg-error "15:capture of non-variable" }
8 };