<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Assertion failure in defaultedDestructorIsDeleted"
   href="https://bugs.llvm.org/show_bug.cgi?id=41247">41247</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failure in defaultedDestructorIsDeleted
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>OpenCL
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jji@us.ibm.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>anastasia.stulova@arm.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ 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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>