Open Quuxplusone opened 8 years ago
Bugzilla Link | PR27380 |
Status | NEW |
Importance | P normal |
Reported by | Edward Diener (eldlistmailingz@tropicsoft.com) |
Reported on | 2016-04-15 16:48:10 -0700 |
Last modified on | 2016-04-16 00:06:57 -0700 |
Version | trunk |
Hardware | PC Windows NT |
CC | dgregor@apple.com, llvm-bugs@lists.llvm.org, marci_r@web.de, s_bugzilla@nedprod.com |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also | PR27169 |
Related: An alternative to making the MSVC preprocessor emulation more like MSVC is to give MSVC ABI target users the ability to choose an ISO standard preprocessor instead whilst retaining the MSVC ABI target: https://llvm.org/bugs/show_bug.cgi?id=27169
If the '-Wno-invalid-token-paste' option is passed to clang-cl when compiling, the code compiles without errors. The '-Wno-invalid-token-paste' should be the default when targeting VC++ since the VC++ preprocessor works as if '-Wno-invalid-token-paste' were in effect and clang targeting VC++ is emulating the VC++ preprocessor with its non-standard behavior.