Bug#175809: Strange or incorrect floating point behaviour

2003-01-10 Thread Gerhard Wesp
> Do you get the expected results if you do this? Yes and no. I include a modified example. The assertion fails if compiled with -O3 -ffloat-store -DA, it doesn't if compiled without the -DA. So it seems to depend on where the assignments take place. Regards, -Gerhard #include #if 1 tem

Bug#175809: Strange or incorrect floating point behaviour

2003-01-09 Thread Gerhard Wesp
> The compiler is certainly allowed to compute 2.5*u at compile time. It I'd suggest -ffloat-store should also apply to such compile-time computations to be consistent. Does this sound reasonable? Regards, -Gerhard -- | voice: +43 (0)676 6253725 *** web: http://www.cosy.sbg.ac.at/~gwesp/ | |

Bug#175809: Strange or incorrect floating point behaviour

2003-01-08 Thread Gerhard Wesp
Package: g++-3.2 Version: 3.2.2 20021212 (Debian prerelease) Note that this problem most likely is present in other g++ versions, and also, in similar forms, in other gcc languages. It was discussed in comp.lang.c++.moderated, cf. news:<[EMAIL PROTECTED]> and the followup postings. Posters sugges