home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!gatech!darwin.sura.net!sgiblab!newsun!novdpd!bboerner
- From: bboerner@novell.com (Brendan B. Boerner)
- Subject: Re: GCC 2.2.2d bug
- Message-ID: <1992Sep4.230902.2523@novell.com>
- Organization: Novell, Inc. --Austin
- References: <1992Sep4.202913.14346@hippo.ru.ac.za>
- Date: Fri, 4 Sep 1992 23:09:02 GMT
- Lines: 20
-
- In article <1992Sep4.202913.14346@hippo.ru.ac.za> pi@cs.sun.ac.za writes:
- >I have found that gcc is generating the wrong code for the following
- >code fragment:
- >
- > int p = 10;
- > p = p++;
- >
- >From my C background, I have found the value to be 10. Unfortunately
- >(for the gcc maintainers) the result is 11.
-
- I have this idea that if you posted this to comp.lang.c, Chris Torek or
- someone similar would point out that this is correct behaviour. My gut
- feeling is that it SHOULD be 11 but I'm not a C guru.
-
- Later,
- Brendan
- --
- Brendan B. Boerner Phone: 512/346-8380
- Internet: bboerner@novell.com MHS: bboerner@novell
- Please use ^^^^^^^^^^^^^^^^^ if replying by mail.
-