From: "Christian Groessler" <cpg@aladdin.de>
To: axp-list@redhat.com
Subject: Re: What's the deal with the new Compaq C for Linux/AXP ..
Date: Tue, 7 Sep 1999 11:50:40 +0100 [thread overview]
Message-ID: <412567E5.003BF4C7.00@saturn.aladdin.de> (raw)
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
next reply other threads:[~1999-09-07 9:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-07 10:50 Christian Groessler [this message]
1999-09-07 16:07 ` What's the deal with the new Compaq C for Linux/AXP Michal Jaegermann
1999-09-08 9:11 ` Thomas Leitner
-- strict thread matches above, loose matches on Subject: below --
1999-09-08 9:26 Christian Groessler
1999-09-07 5:32 Designer Seven
1999-09-07 1:31 Designer Seven
1999-09-06 18:42 SCSI recommendations Jeff DeMaagd
1999-09-06 18:49 ` What's the deal with the new Compaq C for Linux/AXP Thomas Leitner
[not found] ` <tom@radar.tu-graz.ac.at>
1999-09-07 4:03 ` Christoph Dworzak
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox