home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / linux / 9890 < prev    next >
Encoding:
Text File  |  1992-09-07  |  1020 b   |  31 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!gatech!darwin.sura.net!sgiblab!newsun!novdpd!bboerner
  3. From: bboerner@novell.com (Brendan B. Boerner)
  4. Subject: Re: GCC 2.2.2d bug
  5. Message-ID: <1992Sep4.230902.2523@novell.com>
  6. Organization: Novell, Inc. --Austin
  7. References: <1992Sep4.202913.14346@hippo.ru.ac.za>
  8. Date: Fri, 4 Sep 1992 23:09:02 GMT
  9. Lines: 20
  10.  
  11. In article <1992Sep4.202913.14346@hippo.ru.ac.za> pi@cs.sun.ac.za writes:
  12. >I have found that gcc is generating the wrong code for the following
  13. >code fragment:
  14. >
  15. >  int p = 10;
  16. >  p = p++;
  17. >
  18. >From my C background, I have found the value to be 10.  Unfortunately
  19. >(for the gcc maintainers) the result is 11.
  20.  
  21. I have this idea that if you posted this to comp.lang.c, Chris Torek or
  22. someone similar would point out that this is correct behaviour.  My gut
  23. feeling is that it SHOULD be 11 but I'm not a C guru.
  24.  
  25. Later,
  26. Brendan
  27. -- 
  28. Brendan B. Boerner        Phone: 512/346-8380
  29. Internet: bboerner@novell.com    MHS: bboerner@novell
  30. Please use ^^^^^^^^^^^^^^^^^ if replying by mail.
  31.