This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/41779] Spurious integral promotion



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]