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

             Bug #: 13527
           Summary: crash-on-invalid: assertion failure when destructor is
                    both deleted and defaulted
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++11
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


$ cat t.cpp
struct X {
  ~X() = delete;
};

X::~X() = default;

$ clang -std=c++11 t.cpp
t.cpp:5:4: error: redefinition of '~X'
X::~X() = default;
   ^
t.cpp:2:3: note: previous definition is here
  ~X() = delete;
  ^
Assertion failed: ((Destructor->isDefaulted() &&
!Destructor->doesThisDeclarationHaveABody() && !Destructor->isDeleted()) &&
"DefineImplicitDestructor - call it for implicit default dtor"), function
DefineImplicitDestructor, file SemaDeclCXX.cpp, line 7182.

-- 
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