[Bug c++/95767] No warning when branching on two identical conditions

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jun 19 14:48:06 GMT 2020


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
-Wduplicated-cond warns about similar things, but not in this case, because it
thinks that the condition has side-effects.


More information about the Gcc-bugs mailing list