Debian Codegraph @

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

raw
1 // PR c++/84446
2 // { dg-do compile { target c++11 } }
3
4 template<int> void foo()
5 {
6 int i,
7 i = [] { virtual }(); // { dg-error "redeclaration|expected" }
8 }