This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/81607] Conditional operator: "type mismatch in shift expression" error
- From: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 29 Jul 2017 06:20:14 +0000
- Subject: [Bug tree-optimization/81607] Conditional operator: "type mismatch in shift expression" error
- Auto-submitted: auto-generated
- References: <bug-81607-4@http.gcc.gnu.org/bugzilla/>
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.