http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57034
--- Comment #6 from Christopher Hite
2013-04-23 17:26:26 UTC ---
Good, I was a big worried I couldn't convert ints to floats unless the int was
safely mappable. It rounds which is what I'd expect.
I now think z5 is safe, since int32_t(f
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57034
--- Comment #4 from Christopher Hite
2013-04-23 11:35:25 UTC ---
64-bit.
Thanks for pointing out I was converting to float and back. Both of the
following work:
int32_t z3=(qFuture >= double(MAX) ? MAX : double(qFuture) ); //works
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57034
--- Comment #1 from Christopher Hite
2013-04-22 17:36:52 UTC ---
Created attachment 29915
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29915
unit test of bug + build instructions in comment
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57034
Bug #: 57034
Summary: ternary operator with float infinity in O0
Classification: Unclassified
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: normal