https://llvm.org/bugs/show_bug.cgi?id=30588
Bug ID: 30588 Summary: Clang-cl: Preprocessor concatenate strings failure with colons Product: clang Version: trunk Hardware: PC OS: Windows NT Status: NEW Severity: normal Priority: P Component: C++ Assignee: unassignedclangb...@nondot.org Reporter: jva...@gmail.com CC: dgre...@apple.com, llvm-bugs@lists.llvm.org Classification: Unclassified Created attachment 17393 --> https://llvm.org/bugs/attachment.cgi?id=17393&action=edit Reproduction While trying to compile our MSVC code base with clang-cl, we found a preprocessor error in string-concatenations. If we define our concatenate the following way: (See attachment for full reproduction) #define M(O,P) #O ## "::" ## #P it cannot be called with M(A::B, C) Instead it gives errors: error: pasting formed '"A::B""::"', an invalid preprocessing token [-Winvalid-token-paste] -- 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