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

template < typename T >  
void foo ()
{
  T ([=] (S) { [=] {}; }); 	// { dg-error "" }
}