Debian Codegraph @

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

raw
1 // PR c++/52487
2 // { dg-do compile { target c++11 } }
3
4 struct A; // { dg-message "forward declaration" }
5
6 void foo(A& a)
7 {
8 [=](){a;}; // { dg-error "incomplete type" }
9 }