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: unassignedclangb...@nondot.org
Reporter: jva...@gmail.com
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs