c/9569: 8 bytes seems to long for long long int

stefaandr@hotmail.com stefaandr@hotmail.com
Tue Feb 4 13:36:00 GMT 2003


>Number:         9569
>Category:       c
>Synopsis:       8 bytes seems to long for long long int
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 04 13:36:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     stefaandr@hotmail.com
>Release:        gcc version 3.4 20030204 (experimental)
>Organization:
>Environment:
redhat 8.0
Reading specs from /esat/quendi/stefaan/install/lib/gcc-lib/i686-pc-linux-gnu/3.4/specs
Configured with: ../../src/gcc/configure --enable-languages=c,c++ --prefix=/esat/quendi/stefaan/install
Thread model: posix
gcc version 3.4 20030204 (experimental)
>Description:
compile this code:

int main() {
	long long int x = 0x0123456789abcdef;
};

it gives:
test6.cpp: In function `int main()':
test6.cpp:2: error: integer constant is too large for "long" type
>How-To-Repeat:
compile code contained in description
>Fix:

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



More information about the Gcc-bugs mailing list