This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/52014] New: [c++0x] g++: Segfault When `decltype` Used in Nested Lambda Function Defined in Class Member Function


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]