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

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

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