From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2d8f5b4442f235e1 X-Google-Attributes: gidfee84,public From: John Parks Subject: Re: cc problem on OSF 4.0B Date: 1997/03/13 Message-ID: <3328673A.41C6@zko.dec.com>#1/1 X-Deja-AN: 225275390 References: <5g6dp3$sf5@phunn1.sbphrd.com> Organization: WHATX "decc: :jps", "decc::parks" Newsgroups: comp.unix.osf.osf1 Hi Michel, It was indeed a compiler problem. The compiler refused to token-paste 0x to 23a252f6 in the SVAL macro. Here's a distilled testcase #define SVAL(a,b) 0x ## a ## b SVAL(23a252f6,0bae4907) The compiler should expand the SVAL call to 0x23a252f60bae4907. It didn't because it didn't like the leftmost operand (0x is not a legitimate hex constant). It shouldn't have cared. The compiler bug is now fixed. A simple code workaround would be to rewrite 0x as 0x0. It should not change the numeric value. Modifying the above testcase would yield #define SVAL(a,b) 0x0 ## a ## b SVAL(23a252f6,0bae4907) Thanks for letting us know about the problem. Hope the work- around will help. We can also point you to a fixed compiler if you'd like. \John