Article View: comp.std.c
Article #1240Re: int const * p;
From: Joachim Sprave
Date: Wed, 02 Sep 1992 08:27
Date: Wed, 02 Sep 1992 08:27
26 lines
1113 bytes
1113 bytes
Sorry,
I apologize to SUN, Jutta you're right. The fact is, in my test
program I jumped to the wrong line. So
int const * p;
is accepted by acc and gcc. The error message occured in the line
const int const *q;
which IMO is incorrect, or at least useless.
acc reports: "constp.c", line 4: invalid type combination
gcc reports: constp.c:4: warning: duplicate `const'
Thanks to all who answered
//////\\
/ \
_| _ _ |_
|.|-(.)-(.)+.|
\| J |/
\ --- /
\ /
"####"
Joachim
Technical Details
Message-ID:
<181tsmINN8uh@fbi-news.Informatik.Uni-Dortmund.DE>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!Informatik.Uni-Dortmund.DE!gonzo!spraveReferences:
<180188INNmtc@fbi-news.Informatik.Uni-Dortmund.DE>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!Informatik.Uni-Dortmund.DE!gonzo!sprave From: sprave@gonzo.informatik.uni-dortmund.de (Joachim Sprave) Newsgroups: comp.std.c Subject: Re: int const * p; Date: 2 Sep 1992 08:27:02 GMT Organization: CS Department, Dortmund University, Germany Lines: 26 Sender: sprave@gonzo (Joachim Sprave) Distribution: world Message-ID: <181tsmINN8uh@fbi-news.Informatik.Uni-Dortmund.DE> References: <180188INNmtc@fbi-news.Informatik.Uni-Dortmund.DE> NNTP-Posting-Host: gonzo