Created attachment 26475 [details] File containing code sample with offending bug. Hello everyone, When I try to compile the attached C++ file using the following command, g++ undergoes an internal segmentation fault. $ g++ -Wall -std=c++0x nested_lambda.cpp nested_lambda.cpp: In lambda function: nested_lambda.cpp:42:56: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions. Preprocessed source stored into /tmp/ccqYohFA.out file, please attach this to your bugreport. I'm using g++ version 4.6.1, running on Linux Mint 12 64-bit, obtained from the Ubuntu repository.
Sorry, accidentally hit return before I was ready. The code sample fails to compile because of the use of decltype in the parameter-list of the nested lambda function defined in bar.test(). Using a typedef in advance will circumvent this issue.
Confirmed. Is helper::type supposed to be public?
Fixed for 4.8.1.