https://bugs.llvm.org/show_bug.cgi?id=41247
Bug ID: 41247
Summary: Assertion failure in defaultedDestructorIsDeleted
Product: clang
Version: trunk
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: OpenCL
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
$ cat t-86050e.cpp
# 1 "<built-in>"
# 1 "t.cpp"
struct A {
~A() { }
};
struct B: A {
B(): A() { }
virtual ~B() // Expect missing ';' error message
private:
void C() { }
};
int main() {
B b;
return 0;
}
$ clang -c t.cpp
t.cpp:8:2: error: expected '(' or '{'
void C() { }
^
clang-9: .../llvm-project/clang/include/clang/AST/DeclCXX.h:931: bool
clang::CXXRecordDecl::defaultedDestructorIsDeleted() const: Assertion
`(!needsOverloadResolutionForDestructor() || (data().DeclaredSpecialMembers &
SMF_Destructor)) && "this property has not yet been computed by Sema"' failed.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs