PR c++/56973, DR 696 - capture constant variables only as needed.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / lambda / lambda-use2.C
blob96af09c5cbc04135365c07e7818fa11818b6f2ef
1 // PR c++/50224
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wunused-parameter" }
5 struct T;
7 void m(T& t) // ERROR here
9   [&]{
10     t; // ``t`` is referenced here
11   };