[Bug c++/40099] New: 64bit constants
Andrey dot Martchovsky at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon May 11 02:06:00 GMT 2009
The following code produces
andrey@tiny:~/Documents/Thesis/TIA/pll$ gcc tst.c
tst.c:2: warning: integer constant is too large for âÂÂlongâ type
andrey@tiny:~/Documents/Thesis/TIA/pll$ g++ tst.c
tst.c:2: error: integer constant is too large for âÂÂlongâ type
1:#include <stdio.h>
2:long long int tst = 8000000000;
3:int main(){
4: printf("sizeof(long long int)=%d\n",sizeof(long long int));
5: printf("tst=%lld\n",tst);
6: return 0;
7:}
--
Summary: 64bit constants
Product: gcc
Version: 4.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Andrey dot Martchovsky at gmail dot com
GCC target triplet: g++ (Ubuntu 4.3.3-5ubuntu4) 4.3.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40099
More information about the Gcc-bugs
mailing list