https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98572

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>Integer types smaller than int are promoted when an operation is performed on 
>them. 

>From that same web page.  (and is true for C standard too).
bit-fields have a different type than the original defined types (in GCC C),
they have a type which has the same number of bits as what you define it as
there for it is considered smaller than int and therefor is promoted to int.

See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88731#c2 .

*** This bug has been marked as a duplicate of bug 88731 ***

Reply via email to