home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / std / c / 2552 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  1.0 KB

  1. Path: sparky!uunet!mcsun!Germany.EU.net!Informatik.Uni-Dortmund.DE!gonzo!sprave
  2. From: sprave@gonzo.informatik.uni-dortmund.de (Joachim Sprave)
  3. Newsgroups: comp.std.c
  4. Subject: Re: int const * p;
  5. Date: 2 Sep 1992 08:27:02 GMT
  6. Organization: CS Department, Dortmund University, Germany
  7. Lines: 26
  8. Sender: sprave@gonzo (Joachim Sprave)
  9. Distribution: world
  10. Message-ID: <181tsmINN8uh@fbi-news.Informatik.Uni-Dortmund.DE>
  11. References: <180188INNmtc@fbi-news.Informatik.Uni-Dortmund.DE>
  12. NNTP-Posting-Host: gonzo
  13.  
  14. Sorry,
  15.  
  16. I apologize to SUN, Jutta you're right. The fact is, in my test
  17. program I jumped to the wrong line. So
  18.  
  19.            int const * p;
  20.  
  21. is accepted by acc and gcc. The error message occured in the line
  22.  
  23.         const int const *q;
  24.  
  25. which IMO is incorrect, or at least useless.
  26. acc reports:    "constp.c", line 4: invalid type combination
  27. gcc reports:    constp.c:4: warning: duplicate `const'
  28.  
  29. Thanks to all who answered
  30.  
  31.          //////\\
  32.         /        \
  33.        _|  _   _ |_
  34.       |.|-(.)-(.)+.|
  35.        \|    J   |/
  36.         \   ---  /
  37.          \      /
  38.           "####"
  39.         Joachim
  40.