<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 - Extern C inconsistency sqloledb.h not accepted by clang-cl"
   href="https://bugs.llvm.org/show_bug.cgi?id=32068">32068</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Extern C inconsistency sqloledb.h not accepted by clang-cl
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>4.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </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>jvapen@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=18025" name="attach_18025" title="Reproduction">attachment 18025</a> <a href="attachment.cgi?id=18025&action=edit" title="Reproduction">[details]</a></span>
Reproduction

I know clang-cl ain't a bug-to-bug compatible driver, though, from my
understanding it does try to accept the windows headers.

The following case is reduced from sqloledb.h, which can be found in C:\Program
Files (x86)\Windows Kits\10\Include\<version>\um

This has a: extern Struct Name = {0x00, 0x00 ...};
Followed by: extern "C" Struct Name;

Somehow, VS2015 seems to accept this, while clang-cl 4.0-rc2 doesn't.
In attachment you can find the cpp file, compile commands, clang-output and
MSVC obj file</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>