can this happen?

janka janka@statistik.wu-wien.ac.at
Mon Sep 11 01:44:00 GMT 2000


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



More information about the Gcc-bugs mailing list