This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/41779] Spurious integral promotion
- From: "foo at mailinator dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Dec 2009 18:02:36 -0000
- Subject: [Bug c++/41779] Spurious integral promotion
- References: <bug-41779-15299@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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