Question about difference between integer literal handling in gcc 3.2.3 and 3.4.3

Paul Tai paul.tai@teampcs.com
Fri May 13 22:57:00 GMT 2005


This number: 3862586112 would result in 
'decimal constant is so large that it is unsigned' warning in both 3.2.3 and
3.4.3.

This number: 5055248896 would result in
3.4.3: 'integer constant is too large for "long" type' error.
3.2.3: neither warning nor error in 3.2.3.

My question is how does gcc 3.2.3 handle this second integer literal which
seems to be too big even for unsigned long.

Paul.



More information about the Gcc-help mailing list