https://llvm.org/bugs/show_bug.cgi?id=30588
Richard Smith <richard-l...@metafoo.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |richard-l...@metafoo.co.uk Resolution|--- |INVALID --- Comment #1 from Richard Smith <richard-l...@metafoo.co.uk> --- Your code is incorrect. The token paste would form the invalid token "A::B""::""C"; the MS preprocessor has a bug where it accepts such invalid token pastes. You have a couple of options here: 1) You can fix your code by removing the ##s: #define M(O,P) #O ## "::" ## #P 2) You can pass -Wno-invalid-token-paste to Clang to disable the error; we will then give the same incorrect result as MSVC. -- 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