home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
- 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
-