Alexandre Becoulet wrote:
Hi list,
Tcc fails to compile some code due to what seems like a preprocessor bug. Here
is a test case:
#define CONCAT(a, b, c) a##b##c
#define FOO(a, b, c) CONCAT(a, b, c)
CONCAT(F, O, O)(X, Y, Z)
This should expand to XYZ (tryed with gcc, clang, intel and sun) but tcc
preprocessor expands to CONCAT(X, Y, Z).
The expansion is performed properly when commenting out some nested macro
check code in the preprocessor.
Yes, there are bugs. Here is another one:
#define v s.v
#define S(x) x
S(v)
Should expand to s.v but does to s.s.v
--- grischka
_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel