[Bug tree-optimization/81607] Conditional operator: "type mismatch in shift expression" error

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jul 29 06:21:00 GMT 2017


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

Marc Glisse <glisse at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-checking
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-07-29
   Target Milestone|---                         |8.0
     Ever confirmed|0                           |1

--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
The original dump has
(void) (f = (char) ((long int) d.c << a))

(using long instead of int) This happens only for a bitfield of size 32, not 31
or 33, we probably get confused about a NOP conversion somewhere along the way.


More information about the Gcc-bugs mailing list