From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 4536 invoked from network); 7 Sep 1999 09:51:02 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 7 Sep 1999 09:51:02 -0000 Received: from saturn.aladdin.de (saturn.aladdin.de [194.123.19.3]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id FAA30226 for ; Tue, 7 Sep 1999 05:51:01 -0400 Received: by saturn.aladdin.de(Lotus SMTP MTA v4.6.2 (693.3 8-11-1998)) id 412567E5.003BF606 ; Tue, 7 Sep 1999 11:54:56 +0100 X-Lotus-FromDomain: AKS From: "Christian Groessler" To: axp-list@redhat.com Message-ID: <412567E5.003BF4C7.00@saturn.aladdin.de> Date: Tue, 7 Sep 1999 11:50:40 +0100 Subject: Re: What's the deal with the new Compaq C for Linux/AXP .. Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline Hi, > >in code similar to this: > >int foo(int bar){ > return bar; >} > >it says something like: > >line 1, missing semicolon... >int foo(int bar){ >________________^ > > >what's wrong with that? I think the preprocesor is somehow broken. I've got this program: ------------- #define XXX(xxx) void bla##xxx(void) XXX(08a) { return; } XXX(0ea) { return; } ------------- If I try to compile it I get: -------------- [chris@alpha:~]$ ccc -c ccc-bug.c cc: Error: ccc-bug.c, line 4: Missing ";". (nosemi) XXX(0ea) { return; } ^ cc: Error: ccc-bug.c, line 4: The type of the tentatively-defined variable "bla0e" is incomplete at the end of the compilation unit. (incomptent)XXX(0ea) { return; } ^ [chris@alpha:~]$ -------------- Looking at the preprocessed source (ccc -E ccc-bug.c); -------------- [chris@alpha:~]$ ccc -E ccc-bug.c # 1 "ccc-bug.c" void bla08a ( void ) { return; } void bla0e a ( void ) { return; } [chris@alpha:~]$ -------------- The preprocessor inserts a space in the second XXX() line. This space depends on the parameter to XXX(). Where can I place a bug report? regards, chris