[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-bugs
Subject:    compilation error of odd C/C++ program
From:       "Tobias A. Brick" <tbrick () cs ! uoregon ! edu>
Date:       1999-08-09 15:38:24
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic