[LLVMbugs] [Bug 19508] New: Nested class with std::unique_ptr with custom deleter causes clang to crash.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 22 02:35:23 PDT 2014


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

            Bug ID: 19508
           Summary: Nested class with std::unique_ptr with custom deleter
                    causes clang to crash.
           Product: clang
           Version: 3.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: littlekid87 at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12418
  --> http://llvm.org/bugs/attachment.cgi?id=12418&action=edit
The dump that was on output when clang crashes.

#include <memory>

class temp_test final
{
    class bar final
    {
        std::unique_ptr<void, auto (*)(void*) -> void>  _data{nullptr,
[](void*){}};
    };
};

The above code causes clang to crash in Linux, clang 3.4.

It works on OS X clang.

-- 
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/20140422/5a89b7a3/attachment.html>


More information about the llvm-bugs mailing list