This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12625] bitfields which have sizes that are powers of 8 missed by -Wparentheses



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-04-23 20:05 -------
Fixed by:
2006-04-23  Mark Mitchell  <mark@codesourcery.com>

        PR c++/26534
        * cp-tree.h (is_bitfield_expr_with_lowered_type): New function.
        * typeck.c (is_bitfield_expr_with_lowered_type): New function.
        (decay_conversion): Convert bitfield expressions to the correct
        type.
        (build_modify_expr): Remove spurious conversions.
        * class.c (layout_class_type): Modify the type of bitfields to
        indicate a limited range.
        * call.c (standard_conversion): Adjust the type of bitfield
        expressions used in an rvalue context.
        (build_conditional_expr): Likewise.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.2.0


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]