[LLVMbugs] [Bug 19159] New: Compiler crash while compiling simple template

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Mar 16 18:42:01 PDT 2014


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: unassignedclangbugs at nondot.org
          Reporter: ewconnell at hotmail.com
                CC: llvmbugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140317/adac503d/attachment.html>


More information about the llvm-bugs mailing list