http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52725
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-05-29 11:59:26 UTC --- (In reply to comment #6) > N.B. 4.5 says > > t.cc: In function ‘void f()’: > t.cc:7:19: warning: lambda expressions only available with -std=c++0x or > -std=gnu++0x > > But that was fixed for 4.6 I tested 4.5.2, that should be fixed in 4.5.3, see Bug 46159 and its dup Bug 47651