Help with bit-field semantics in C and C++

Joseph S. Myers jsm@polyomino.org.uk
Fri Aug 27 22:49:00 GMT 2004


On Fri, 27 Aug 2004, Steven L. Zook wrote:

> Ok, it sounds like I wasn't tracking the discussion quite right (which 
> is what I was trying to ascertain).

Or, rather, the C++ standard.  The unstated assumption of the discussion 
is that everyone involved has to hand a copy of the C++ standard and has 
read [dcl.enum], which defines the values of the enumeration in paragraph 
6 to be the values of the underlying type in the range between the 
smallest and largest values of the smallest bit-field that can store the 
smallest and largest enumerators, and then has in paragraph 9 the wording 
under debate.

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)



More information about the Gcc mailing list