[fuzz] Assertion `(Destructor->isDefaulted() && !Destructor->doesThisDeclarationHaveABody() && !Destructor->isDeleted()) && "DefineImplicitDestructor - call it for implicit default dtor"' failed. #22335
Labels
bugzilla
Issues migrated from bugzilla
clang
Clang issues not falling into any other category
worksforme
Resolved as "works for me"
Extended Description
Fuzzing discovered that the test case below, when given as input to
clang -fno-crash-diagnostics -std=c++11 -xc++ -c -emit-llvm
causes this assertion failure:
clang-3.6: tools/clang/lib/Sema/SemaDeclCXX.cpp:9226: void clang::Sema::DefineImplicitDestructor(clang::SourceLocation, clang::CXXDestructorDecl*): Assertion `(Destructor->isDefaulted() && !Destructor->doesThisDeclarationHaveABody() && !Destructor->isDeleted()) && "DefineImplicitDestructor - call it for implicit default dtor"' failed.
Test case:
struct A {
~A() = delete;
~A() = default;
};
The text was updated successfully, but these errors were encountered: