http://llvm.org/bugs/show_bug.cgi?id=7342

           Summary: Segfault when compiling with optimizations
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


Created an attachment (id=4998)
 --> (http://llvm.org/bugs/attachment.cgi?id=4998)
Preprocessed source

The following code consistently fails to compile with -O2 or -O3. I've reduced
the case as far as possible.

Output:

1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'X86 DAG->DAG Instruction Selection' on function
'@_ZN4TestC2Ev'


#include <boost/shared_ptr.hpp>
#include <deque>

namespace {
    struct A { };
}

struct Test
{
    Test();
    std::deque<boost::shared_ptr<A> > x;
};

Test::Test() {}

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to