This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52014] New: [c++0x] g++: Segfault When `decltype` Used in Nested Lambda Function Defined in Class Member Function
- From: "cheesear at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 27 Jan 2012 07:00:51 +0000
- Subject: [Bug c++/52014] New: [c++0x] g++: Segfault When `decltype` Used in Nested Lambda Function Defined in Class Member Function
- Auto-submitted: auto-generated
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: unassigned@gcc.gnu.org
ReportedBy: cheesear@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.