This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Question about difference between integer literal handling in gcc 3.2.3 and 3.4.3
- From: Paul Tai <paul dot tai at teampcs dot com>
- To: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Date: Fri, 13 May 2005 15:57:51 -0700
- Subject: Question about difference between integer literal handling in gcc 3.2.3 and 3.4.3
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.