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++/30274] [4.2/4.3 Regression] bool bit-field: wrong increment and decremenet



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-12-22 09:24 -------
Actually I was wrong in saying this is an easy fix.
That part of the fix is still needed but there is another issue in that we are
getting the wrong type for the increment:
 <component_ref 0xb7d2a118
    type <integer_type 0xb7d5e9b4 public unsigned QI
        size <integer_cst 0xb7c911e0 constant invariant 8>
        unit size <integer_cst 0xb7c911f8 constant invariant 1>
        align 8 symtab 0 alias set -1 precision 4 min <integer_cst 0xb7d61120
0> max <integer_cst 0xb7d61138 15>>

    arg 0 <var_decl 0xb7c9e210 x
        type <record_type 0xb7d5e8fc S type_1 type_5 QI size <integer_cst
0xb7c911e0 8> unit size <integer_cst 0xb7c911f8 1>
            align 8 symtab 0 alias set -1 fields <field_decl 0xb7d5e958 x>
            X() X(constX&) this=(X&) n_parents=0 use_template=0
interface-unknown
            pointer_to_this <pointer_type 0xb7d5eac8> chain <type_decl
0xb7d27958 S>>
        used tree_1 tree_2 tree_3 decl_5 QI file t.cc line 9 size <integer_cst
0xb7c911e0 8> unit size <integer_cst 0xb7c911f8 1>
        align 8 context <function_decl 0xb7d5f0e0 main> initial <constructor
0xb7d61330>>
    arg 1 <field_decl 0xb7d5e958 x type <integer_type 0xb7d5e9b4>
        used unsigned external nonlocal bit-field nonaddressable decl_3 decl_4
QI file t.cc line 4
        size <integer_cst 0xb7d235d0 constant invariant 4> unit size
<integer_cst 0xb7c911f8 1>
        align 1 offset_align 128
        offset <integer_cst 0xb7c91180 constant invariant 0>
        bit offset <integer_cst 0xb7c91930 constant invariant 0>
        bit_field_type <boolean_type 0xb7ca54ac bool public unsigned QI size
<integer_cst 0xb7c911e0 8> unit size <integer_cst 0xb7c911f8 1>
            align 8 symtab 0 alias set -1 precision 1 min <integer_cst
0xb7c915d0 0> max <integer_cst 0xb7c91600 1>> context <record_type 0xb7d5e8fc
S>
        chain <type_decl 0xb7d279c0 S type <record_type 0xb7d5e8fc S>
            nonlocal decl_4 VOID file t.cc line 3
            align 1 context <record_type 0xb7d5e8fc S>
           >>>


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|pinskia at gcc dot gnu dot  |unassigned at gcc dot gnu
                   |org                         |dot org
             Status|ASSIGNED                    |NEW


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


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