This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
compilation error of odd C/C++ program
- To: <gcc-bugs at gcc dot gnu dot org>
- Subject: compilation error of odd C/C++ program
- From: "Tobias A. Brick" <tbrick at cs dot uoregon dot edu>
- Date: Mon, 9 Aug 1999 08:48:58 -0700
I aplogize--I screwed up with the last message I sent and the attachments
didn't go through. Here you are. Note, I am also including the assembly
code (weird.s), and everything is zipped using bzip2.
Tobias A. Brick
(541) 346-4392
> -----Original Message-----
> From: Tobias A. Brick [mailto:tbrick@cs.uoregon.edu]
> Sent: Monday, August 09, 1999 8:38 AM
> To: gcc-bugs@gcc.gnu.org
> Subject: compilation error of odd C/C++ program
>
>
> I have attached the appropriate files (according to the "How to
> Report Bugs" section of the faq). Due to the lack of a specified
> order of evaluation in some arithmetic expressions in C/C++, this
> program has more than one possible correct output. However, I'm
> quite certain that the output it produces when compiled with g++,
> with no optimization is not a possible correct output. I have
> included that in the command line session I copied and pasted.
> The files I'm sending are:
>
> weird.C: short program illustrating the issue
> weird.ii: the output the faq says to include
> forgnu: I copied and pasted the command line messages when I
> compiled and ran it, like the faq said to.
>
> Thanks.
>
> Tobias A. Brick
> (541) 346-4392
weird.C.bz2
weird.ii.bz2
weird.s.bz2
forgnu.bz2