Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

WinSDK's Windows.ApplicationModel.h header breaks clang-cl builds #35401

Open Quuxplusone opened 6 years ago

Quuxplusone commented 6 years ago
Bugzilla Link PR36428
Status NEW
Importance P normal
Reported by Charles Milette (charles.milette@gmail.com)
Reported on 2018-02-18 16:52:06 -0800
Last modified on 2018-02-20 04:56:40 -0800
Version 5.0
Hardware PC Windows NT
CC hans@chromium.org, llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also

Including this header in a build done with the Visual Studio LLVM-2014 toolset generates over 20 errors. However it builds fine with MSVC.

I have a minimal repro on my machine here: https://gist.github.com/sylveon/6154db58240c901e2f043b865a7f9963

Try changing the toolset to LLVM-2014 in the Visual Studio project settings and building this project. It should fail with errors related to some enum declarations.

If you change it back to MSVC, it builds and executes fine.

Quuxplusone commented 6 years ago

Can you paste the errors here (or in a gist or something)?

Quuxplusone commented 6 years ago

Sure thing https://gist.github.com/sylveon/84042a7b50a73ebed9adf9af51c06a30