not possible to assign big value to long long variable Release: gcc 3.3 [mainline regression] Environment: linux - i386 How-To-Repeat: #include <stdio.h> int main () { long long a; a = (long long)(0x100000000); } produces: test.c: In function `main': test.c:5: warning: integer constant is too large for "long" type
State-Changed-From-To: open->closed State-Changed-Why: Not a bug. It is not complaining about the assignment, but about the constant. You need to add a suffix.
*** Bug 12767 has been marked as a duplicate of this bug. ***
*** Bug 17785 has been marked as a duplicate of this bug. ***