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

            Bug ID: 19159
           Summary: Compiler crash while compiling simple template
           Product: clang
           Version: 3.4
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: Frontend
          Assignee: unassignedclangb...@nondot.org
          Reporter: ewconn...@hotmail.com
                CC: llvmbugs@cs.uiuc.edu
    Classification: Unclassified

Created attachment 12241
  --> http://llvm.org/bugs/attachment.cgi?id=12241&action=edit
This is the command script dumped by xcode

I reduced my code to the simplest repro possible. 
Compile this with Xcode 5.1 default settings, and crash!
The clang command used is in the attached .sh file
It worked fine with Xcode 5.0

//  main.cpp
template<typename T>
class myclass
{
public:
    myclass(int i) {}
    void action() {}
};

template<typename T>
void myfunc() {
    myclass<T> data(0);

    auto fn = [&]() {
    data.action();
    };
}

int main(int argc, const char * argv[])
{
    return 0;
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
LLVMbugs@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to