http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52014
Bug #: 52014 Summary: [c++0x] g++: Segfault When `decltype` Used in Nested Lambda Function Defined in Class Member Function Classification: Unclassified Product: gcc Version: 4.6.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: chees...@gmail.com Created attachment 26475 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26475 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.