public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/8620: not possible to assign big value to long long variable
@ 2002-11-22 15:19 arvin
  0 siblings, 0 replies; 2+ messages in thread
From: arvin @ 2002-11-22 15:19 UTC (permalink / raw)
  To: gcc-gnats


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: c/8620: not possible to assign big value to long long variable
@ 2002-11-22 15:36 neil
  0 siblings, 0 replies; 2+ messages in thread
From: neil @ 2002-11-22 15:36 UTC (permalink / raw)
  To: arvin, gcc-bugs, gcc-prs, nobody

Synopsis: not possible to assign big value to long long variable

State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Mon Nov 18 04:21:29 2002
State-Changed-Why:
    Not a bug.  It is not complaining about the assignment, but about the constant.  You need to add a suffix.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8620


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-18 12:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-22 15:19 c/8620: not possible to assign big value to long long variable arvin
2002-11-22 15:36 neil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).