http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52725
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-03-26 15:43:59 UTC --- It works if you remove the parentheses, which also makes the code valid C++ (currently it relies on a GNU extension that allows a variable array size for a parenthesised new expression, you get a warning with -pedantic or -Wvla) It seems that there's some interaction between the C++11 lambda parsing and the GNU extension