------- Comment #3 from rodrigorivascosta at gmail dot com 2009-12-16 17:05 ------- If the lambda line is changed from: [] { return 0; };
into any of the following: [=] { return 0; }; [&] { return 0; }; int foo = 0; [foo] { return 0; }; The warnings disappear. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42370