[cfe-dev] patch: boolean bitfield init
wilsonkk at shaw.ca
Thu Jul 17 20:01:05 PDT 2008
Seems like this may be a g++ problem for 4.2.X?
I get a result of '1' for function c() using the following:
g++ 4.1.2 on Fedora/x86_64
g++ 3.4.2 on Aurora/Sparc64
g++ 4.1.2 on Syllable/x86
llvm-g++ 4.0.1 on Fedora/x86_64
but I get a result of '0' for:
g++ 4.2.3 on Ubuntu/x86
From: cfe-dev-bounces at cs.uiuc.edu [mailto:cfe-dev-bounces at cs.uiuc.edu] On
Behalf Of Eli Friedman
Sent: Thursday, July 17, 2008 7:53 PM
To: Daniel Dunbar
Cc: cfe-dev at cs.uiuc.edu
Subject: Re: [cfe-dev] patch: boolean bitfield init
On Thu, Jul 17, 2008 at 6:36 PM, Daniel Dunbar <daniel at zuster.org> wrote:
> g++ 4.01 on OSX, the size of the struct is 2, and x.x is 1 (also for
> an initializer where the low bit is 0) and remains 1 after ++x.x.
Huh, really... all the versions of g++ I have on my system mess this up.
cfe-dev mailing list
cfe-dev at cs.uiuc.edu
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.138 / Virus Database: 270.5.1/1559 - Release Date: 7/17/2008
More information about the cfe-dev