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

--- Comment #3 from Michael Karcher <gcc-bugzilla at mkarcher dot 
dialup.fu-berlin.de> ---
Thanks for the pointer to #4210. Note that 4210 is slightly different, though.
In that report, the condition and the warnable expression are in different
statements, and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210#c13
explicitly mentioned using a ternary expression to enable gcc to see the
deadness of the code, using a flag called "skip_evaluation".

This PR concerns a case that uses ?:, so I wonder whether skip_evaluation still
exists, and could be used to gate the sizeof-pointer-div warning.
  • [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