<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 --- - clang-cl produces 32-bit obj file that doesn't link"
   href="https://llvm.org/bugs/show_bug.cgi?id=26755">26755</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang-cl produces 32-bit obj file that doesn't link
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>Driver
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>nicolasweber@gmx.de
          </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>C:\src\chrome\src>type foo.cc
int main() {
  delete new int;
}

C:\src\chrome\src>cl foo.cc
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.31101 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

foo.cc
Microsoft (R) Incremental Linker Version 12.00.31101.0
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:foo.exe
foo.obj

C:\src\chrome\src>"third_party\llvm-build\Release+Asserts\bin\clang-cl.exe"
-m32 foo.cc
foo-fbcd47.obj : error LNK2019: unresolved external symbol "void * __cdecl
operator new(unsigned int)" (??2@YAPAXI@Z) re
ferenced in function _main
foo-fbcd47.obj : error LNK2019: unresolved external symbol "void __cdecl
operator delete(void *)" (??3@YAXPAX@Z) referen
ced in function _main
LINK : error LNK2001: unresolved external symbol _mainCRTStartup
foo.exe : fatal error LNK1120: 3 unresolved externals
clang-cl.exe: error: linker command failed with exit code 1120 (use -v to see
invocation)</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>