https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125127
--- Comment #2 from Artyom Kolpakov <ddvamp007 at gmail dot com> --- (In reply to Jakub Jelinek from comment #1) > That is the correct behavior for -fexcess-precision=standard (enabled by > default for -std=c++11 etc.) on excess precision target like ia32 which > evaluate everything in precision of long double. If you use -msse2 > -mfpmath=sse, then even -m32 will not be excess precision target and will > behave like x86_64 does. I don't fully understand. a / b is a prvalue of type double (decltype(a / b) -> double). Paragraph [expr.static.cast]/9 says: If the source value can be exactly represented in the destination type, the result of the conversion has that exact representation. Therefore, after static_cast<double>(a / b) (prvalue double -> prvalue double), the representation of the value should not change. But it's changing. Is there a mistake somewhere in my reasoning? Or is there an implementation-defined/unspecified position that overlaps with some of the above?
