<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - "operator delete missing - EnterDtorCleanups" assert fails"
   href="https://llvm.org/bugs/show_bug.cgi?id=27319">27319</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>"operator delete missing - EnterDtorCleanups" assert fails
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>PC
          </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>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>hans@chromium.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=16203" name="attach_16203" title="reduced repro">attachment 16203</a> <a href="attachment.cgi?id=16203&action=edit" title="reduced repro">[details]</a></span>
reduced repro

With the attached a.ii file:

$ clang -cc1 -triple x86_64-pc-windows-msvc19.0.0 -emit-obj  -O2
-fms-extensions -fms-compatibility -std=c++14 a.ii -w

clang: ../tools/clang/lib/CodeGen/CGClass.cpp:1816: void
clang::CodeGen::CodeGenFunction::EnterDtorCleanups(const
clang::CXXDestructorDecl*, clang::CXXDtorType): Assertion
`DD->getOperatorDelete() && "operator delete missing - EnterDtorCleanups"'
failed.
#0 0x0000000001bbfa25 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1bbfa25)
#1 0x0000000001bbd7d6 llvm::sys::RunSignalHandlers()
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1bbd7d6)
#2 0x0000000001bbda01 SignalHandler(int)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1bbda01)
#3 0x00007f31bf37b340 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10340)
#4 0x00007f31be59ccc9 gsignal
/build/eglibc-3GlaMS/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#5 0x00007f31be5a00d8 abort
/build/eglibc-3GlaMS/eglibc-2.19/stdlib/abort.c:91:0
#6 0x00007f31be595b86 __assert_fail_base
/build/eglibc-3GlaMS/eglibc-2.19/assert/assert.c:92:0
#7 0x00007f31be595c32 (/lib/x86_64-linux-gnu/libc.so.6+0x2fc32)
#8 0x0000000001e34723
clang::CodeGen::CodeGenFunction::EnterDtorCleanups(clang::CXXDestructorDecl
const*, clang::CXXDtorType)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1e34723)
#9 0x0000000001e386d5
clang::CodeGen::CodeGenFunction::EmitDestructorBody(clang::CodeGen::FunctionArgList&)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1e386d5)
#10 0x0000000001d54315
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1d54315)
#11 0x0000000001e0bb0d
clang::CodeGen::CodeGenModule::codegenCXXStructor(clang::CXXMethodDecl const*,
clang::CodeGen::StructorType)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1e0bb0d)
#12 0x0000000001dc4baf (anonymous
namespace)::MicrosoftCXXABI::emitCXXStructor(clang::CXXMethodDecl const*,
clang::CodeGen::StructorType)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1dc4baf)
#13 0x0000000001d83aea
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl,
llvm::GlobalValue*)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1d83aea)
#14 0x0000000001d83cfe clang::CodeGen::CodeGenModule::EmitDeferred()
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1d83cfe)
#15 0x0000000001d83d16 clang::CodeGen::CodeGenModule::EmitDeferred()
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1d83d16)
#16 0x0000000001d83d16 clang::CodeGen::CodeGenModule::EmitDeferred()
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1d83d16)
#17 0x0000000001d83e14 clang::CodeGen::CodeGenModule::Release()
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1d83e14)
#18 0x00000000022e92e7 (anonymous
namespace)::CodeGeneratorImpl::HandleTranslationUnit(clang::ASTContext&)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x22e92e7)
#19 0x00000000022e4314
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x22e4314)
#20 0x00000000026056bb clang::ParseAST(clang::Sema&, bool, bool)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x26056bb)
#21 0x00000000022e486e clang::CodeGenAction::ExecuteAction()
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x22e486e)
#22 0x0000000001fda486 clang::FrontendAction::Execute()
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1fda486)
#23 0x0000000001fb75ee
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x1fb75ee)
#24 0x000000000205ee3c
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x205ee3c)
#25 0x00000000009e97d8 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x9e97d8)
#26 0x00000000009a42a5 main
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x9a42a5)
#27 0x00007f31be587ec5 __libc_start_main
/build/eglibc-3GlaMS/eglibc-2.19/csu/libc-start.c:321:0
#28 0x00000000009e57a4 _start
(/usr/local/google/work/llvm/build.release/bin/clang-3.9+0x9e57a4)</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>