------- Comment #7 from rguenth at gcc dot gnu dot org  2008-02-04 16:40 -------
The C++ standard says:

'The constant-expression may be larger than the number of bits in the object
representation of the bit-field's type' in such cases the extra bits are
used as padding bits and do not participate in the value representation'

the rest (alignment, etc.) is implementation defined, thus defered to the ABI.

Here actually at least gcc and icc agree in implementation as does the C++
ABI (2.4 II 1b, http://www.codesourcery.com/cxx-abi/abi.html#layout).

Thus, gcc is correct and following the ABI.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |matz at gcc dot gnu dot org
             Status|UNCONFIRMED                 |RESOLVED
 GCC target triplet|                            |x86_64-*-*, i?86-*-*
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32210

Reply via email to