![]() |
Is it a Bug in g++ compiler`s -O flag??
The output is different for the following two codes when compiled as : "g++ -O foo.cpp"
1st COde : Code:
#include<iostream.h>2nd COde : Code:
#include<iostream.h>Expected output : d=3 floor(d)=3 10 But The First code give : d=3 floor(d)=2 10 while the second gives the right output. Could nyone plz explain whats going wrong!! Nikhil |
Re: Is it a Bug in g++ compiler`s -O flag??
Quote:
I guess the difference in output should be a bug as far as I think. |
Re: Is it a Bug in g++ compiler`s -O flag??
i think u r right. and thanx for replying. But the difference in output is not recognized as a Compiler bug. I jus learned it from this GCC website. Check it out: http://gcc.gnu.org/bugs.html#nonbugs_general
|
| All times are GMT +5.5. The time now is 17:23. |