[llvm-bugs] [Bug 41247] New: Assertion failure in defaultedDestructorIsDeleted
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Mar 26 14:03:30 PDT 2019
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: unassignedclangbugs at nondot.org
Reporter: jji at us.ibm.com
CC: anastasia.stulova at arm.com, llvm-bugs at lists.llvm.org
$ 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190326/11ee53a5/attachment-0001.html>
More information about the llvm-bugs
mailing list