This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/8620: not possible to assign big value to long long variable
- From: arvin at suse dot de
- To: gcc-gnats at gcc dot gnu dot org
- Date: 18 Nov 2002 10:06:51 -0000
- Subject: c/8620: not possible to assign big value to long long variable
- Reply-to: arvin at suse dot de
>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: