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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 65592
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65592&action=edit
gcc17-pr127383.patch

This seems to work.  Apparently bit-fields of bit-precise integer type have
always the unqualified type as its underlying type, so the lvalue to rvalue
cast does nothing, but as the testcase shows, for the (cast) foo ().a etc.
cases we need to force something around the COMPONENT_REF.

Reply via email to