[Bug c/65891]=?UTF-8?Q?=20=2DWlogical=2Dop=20now=20warns=20about=20logical=20=E2=80=98and=E2=80=99=20of=20equal=20expressions=20even=20when=20different=20types?=/sizeofs are involved

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Apr 27 16:09:00 GMT 2015


Marek Polacek <mpolacek at gcc dot gnu.org> changed:

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

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
In the ML I wrote:

I'm afraid there isn't an easy solution to this; the problem is that we fold
sizeof early, so the warning sees

  t < sizeof 4 && t < 4

Thus unassigning for now.

More information about the Gcc-bugs mailing list