[Bug c++/57034] ternary operator with float infinity in O0

2013-04-23 Thread christopher.hite at jpmorgan dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57034 --- Comment #4 from Christopher Hite christopher.hite at jpmorgan dot com 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

[Bug c++/57034] ternary operator with float infinity in O0

2013-04-23 Thread christopher.hite at jpmorgan dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57034 --- Comment #6 from Christopher Hite christopher.hite at jpmorgan dot com 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

[Bug c++/57034] New: ternary operator with float infinity in O0

2013-04-22 Thread christopher.hite at jpmorgan dot com
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

[Bug c++/57034] ternary operator with float infinity in O0

2013-04-22 Thread christopher.hite at jpmorgan dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57034 --- Comment #1 from Christopher Hite christopher.hite at jpmorgan dot com 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