------- Comment #1 from manu at gcc dot gnu dot org 2010-02-24 00:16 ------- Confirmed. I am not sure if this fits Wconversion but it is something subtle that would be nice to detect.
The testcase should be: #include <stdio.h> unsigned val1 = 0x10000000, val2 = 0x100; int main(int argc, char **argv) { unsigned long long val3 = val1 * val2; printf ("val1 = 0x%X, val2 = 0x%X, val3 = 0x%llX, val1*val2 = 0x%llX\n", val1, val2, val3, ((unsigned long long)val1)*val2); } -- manu at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu dot org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2010-02-24 00:16:51 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42935