[llvm-bugs] [Bug 32068] New: Extern C inconsistency sqloledb.h not accepted by clang-cl

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Feb 25 02:34:47 PST 2017


https://bugs.llvm.org/show_bug.cgi?id=32068

            Bug ID: 32068
           Summary: Extern C inconsistency sqloledb.h not accepted by
                    clang-cl
           Product: clang
           Version: 4.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jvapen at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 18025
  --> https://bugs.llvm.org/attachment.cgi?id=18025&action=edit
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

-- 
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/20170225/36089e57/attachment-0001.html>


More information about the llvm-bugs mailing list