c/8620: not possible to assign big value to long long variable

arvin@suse.de arvin@suse.de
Mon Nov 18 04:21:00 GMT 2002


>Number:         8620
>Category:       c
>Synopsis:       not possible to assign big value to long long variable
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 18 02:16:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     arvin@suse.de
>Release:        gcc 3.3 [mainline regression]
>Organization:
>Environment:
linux - i386
>Description:
not possible to assign big value to long long variable
>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
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list