This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 3.1.1
- From: Andreas Schwab <schwab at suse dot de>
- To: Jack Lloyd <lloyd at acm dot jhu dot edu>
- Cc: Toon Moene <toon at moene dot indiv dot nluug dot nl>, <gcc at gcc dot gnu dot org>,<shimon at simon-shapiro dot com>
- Date: Fri, 28 Jun 2002 09:33:59 +0200
- Subject: Re: GCC 3.1.1
- References: <Pine.LNX.4.33L2.0206271509350.9521-100000@centaur.acm.jhu.edu>
Jack Lloyd <lloyd@acm.jhu.edu> writes:
|> Basically:
|>
|> unsigned long long x;
|> x = 1 << 32;
|>
|> results in x == 0 rather than 0x100000000 as the code expects.
Actually this is already undefined by itself, and even x == 0 is not
guaranteed.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."