<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I have found a discrepancy in behavior between the clang preprocessor and gcc. <br><br>$ cat t.c <br>#define X 0 .. 1<br><br>0 .. 1 // Ok<br>X      // Bad: space between ..<br><br>$ gcc -E t.c <br><snip><br><br>0 .. 1<br>0 .. 1<br><br>$ clang -E t.c <br><snip><br><br>0 .. 1<br>0 . . 1<br><br>The problem is that when ".." is in the macro and the macro gets expanded, it adds a space between the dots. As you can see, the space is not added when the ".." is entered directly in the text. GCC does not insert a space in either case. <br><br>I'm not sure this qualifies as a bug, but the reason I need this to work is that I am trying to compile GHC (a Haskell compiler) with clang. It uses GCC to preprocess c-- files (<a href="http://www.cminusminus.org">http://www.cminusminus.org</a>) before parsing them and ".." is a valid operator in c--. Adding the extra space messes up the subsequent parsing phase.<br><br>I'd be happy to take a look at fixing this myself if someone could point me in the right direction.<br><br>Thanks!<br>-Dave</body></html>