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:38:24 -0700
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