The following code produces

and...@tiny:~/Documents/Thesis/TIA/pll$ gcc tst.c 
tst.c:2: warning: integer constant is too large for ‘long’ type
and...@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

Reply via email to