[LLVMbugs] [Bug 16040] New: Clang crashes on default parameters for function arguments

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 16 15:31:25 PDT 2013


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

            Bug ID: 16040
           Summary: Clang crashes on default parameters for function
                    arguments
           Product: clang
           Version: 3.2
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: perniciousnumber at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10533
  --> http://llvm.org/bugs/attachment.cgi?id=10533&action=edit
preprocessed source + run-script

class Foo {

    void bar(std::function<void(void)> fnc = []() { })
    {
    }
};

This will make clang crash during compilation. Occurs only on struct / class
methods, independent from function body or signature.

Free standing functions compile fine.

-- 
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/20130516/7e5c6ed6/attachment.html>


More information about the llvm-bugs mailing list