[Bug c++/41779] Spurious integral promotion
foo at mailinator dot com
gcc-bugzilla@gcc.gnu.org
Tue Dec 29 18:02:00 GMT 2009
------- Comment #1 from foo at mailinator dot com 2009-12-29 18:02 -------
5/9 (usual arithmetic conversions) isn't relevant until after 4.5/1 (integral
promotions) has happened. Unsigned short *always* promotes to int in rvalue
contexts; then *that* int is implicitly converted to double in the context of
multiplication by a double (which is what's happening here).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41779
More information about the Gcc-bugs
mailing list