http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51927
js at lastlog dot de changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |js at lastlog dot de --- Comment #4 from js at lastlog dot de 2012-12-05 17:29:35 UTC --- still seems to be broken in 4.7.2 :-P but is known to be working with llvm 3.2 # make simple.cpp: In lambda function: simple.cpp:11:5: error: invalid use of non-static data member ‘testee::l1’ simple.cpp:15:9: error: from this location make[2]: *** [CMakeFiles/simple.dir/simple.cpp.o] Error 1 make[1]: *** [CMakeFiles/simple.dir/all] Error 2 make: *** [all] Error 2 *** Failed *** # g++ --version g++ (Ubuntu/Linaro 4.7.2-11precise2) 4.7.2 Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.