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

--- Comment #4 from Segher Boessenkool <segher at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> I doubt this will be changed anytime soon, see PR 4210 for the history on
> why.

That PR is about an UB case though.  In this case the code is perfectly well
defined (just IB).

The warning code here sees a sizeof divided by a sizeof and wants to warn for
it as being maybe wrong, although it would be pretty easy to see it isn't.
  • [Bug c/10848... gcc-bugzilla at mkarcher dot dialup.fu-berlin.de via Gcc-bugs
    • [Bug c/... pinskia at gcc dot gnu.org via Gcc-bugs
    • [Bug c/... segher at gcc dot gnu.org via Gcc-bugs
    • [Bug c/... gcc-bugzilla at mkarcher dot dialup.fu-berlin.de via Gcc-bugs
    • [Bug c/... segher at gcc dot gnu.org via Gcc-bugs
    • [Bug c/... jakub at gcc dot gnu.org via Gcc-bugs
    • [Bug c/... jakub at gcc dot gnu.org via Gcc-bugs
    • [Bug c/... jakub at gcc dot gnu.org via Gcc-bugs

Reply via email to