Preprocessor Bug ?

Preprocessor Bug ?

Post by thomas.enz » Thu, 07 Oct 2004 01:22:01


Can anyone compile the this 3 lines with a current implementation of
LCC 4.2 ?

#define F1(x) (x)
#define MACRO(f) (f(1))
void macroTest(void) {MACRO(F1);}

My compiler hangs when I try to compile it. I would wonder if it only
happens to me because this is apparently nothing target specific.

Best Regards

Preprocessor Bug ?

Post by jacob navi » Thu, 07 Oct 2004 02:26:15

This doesn't happen in lcc-win32 (phew... :-)


Preprocessor Bug ?

Post by thomas.enz » Fri, 08 Oct 2004 23:34:07

hi jacob,

are your compiler sources still similar to the original LCC sources ?
i would be glad if you could send me some of the files doing the
parser and preprocessor part. so i could compare the LCC 4.2 sources
and fix the bug.