summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice7.C
blob: 6f8272aeb605b9b209a52c3a231a3527f02a0b1e (plain)
1
2
3
4
5
6
7
8
9
// PR c++/52487
// { dg-do compile { target c++11 } }

struct A;         // { dg-message "forward declaration" }

void foo(A& a)
{
  [=](){a;};      // { dg-error "incomplete type" }
}