This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
can this happen?
- To: gcc-bugs at gcc dot gnu dot org
- Subject: can this happen?
- From: janka <janka at statistik dot wu-wien dot ac dot at>
- Date: Mon, 11 Sep 2000 10:44:21 +0200
- Organization: University of Economics and Business Administration Vienna
Dear gcc,
is the following scenario possible (rounding errors, . . .) or must it
be a bug?
double a, b;
some code
if ( a<b){
fprintf("%g", a-b);
}
the output is "0"
if either a or b is printed before the if-statement, there is no output
at all.
gcc version 2.95.1
compiling optionts: o1
yours,
erich janka