Article View: comp.os.os2.programmer
Article #871Bug in the WATCOM 9.0 preprocessor?
From: Chan Shih-Ping
Date: Mon, 17 Aug 1992 01:41
Date: Mon, 17 Aug 1992 01:41
23 lines
879 bytes
879 bytes
Is this a bug in the WATCOM 9.0 preprocessor?
/* Input file test.c */
#define A AA
#define g(x, y) x ## y
#define gg(x) g(x, A)
extern g(B, A)();
extern gg(B) ();
/* End of test.c */
Output of preprocessing phase:
WATCOM C 386 Compile and Link Utility Version 9.0
Copyright by WATCOM Systems Inc. 1988, 1992. All rights reserved.
WATCOM is a trademark of WATCOM Systems Inc.
wcc386 test.c /p
extern BA();
extern BAA (); <----- Isn't this wrong? Shouldn't it be BA ();
Technical Details
Message-ID:
<1992Aug17.014131.9113@nuscc.nus.sg>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sdd.hp.com!wupost!gumby!yale!yale.edu!jvnc.net!nuscc!matcspShow Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sdd.hp.com!wupost!gumby!yale!yale.edu!jvnc.net!nuscc!matcsp From: matcsp@nuscc.nus.sg (Chan Shih-Ping) Subject: Bug in the WATCOM 9.0 preprocessor? Message-ID: <1992Aug17.014131.9113@nuscc.nus.sg> Organization: National University of Singapore Date: Mon, 17 Aug 1992 01:41:31 GMT Lines: 24