This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]