PR c++/56973, DR 696 - capture constant variables only as needed.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / lambda / lambda-ice16.C
blobe94a0b6fa356a4b7306beab3e2b5cbb002a61a0b
1 // PR c++/70781
2 // { dg-do compile { target c++11 } }
4 template < typename T >  
5 void foo ()
7   T ([=] (S) { [=] {}; });      // { dg-error "" }