https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61185
Marek Polacek changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61185
--- Comment #3 from Jakub Jelinek ---
But, if you want to use the source type before this conversion, make sure to
also
test stuff like:
int
main ()
{
unsigned long long l = 0x0001ULL;
volatile int u = 9;
u <<= l;
return 0;
}
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61185
--- Comment #2 from Jakub Jelinek ---
IMHO not a bug. The compiler really uses (int) (i - j) as the shiftcount, and
that is negative.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61185
Marek Polacek changed:
What|Removed |Added
Target Milestone|--- |4.10.0
--- Comment #1 from Marek Polacek