https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92286
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |egallager at gcc dot gnu.org See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=82100 --- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> --- As a user, I don't know if this is really something I'd expect -Wduplicated-cond to warn about; my impression was that that was for when the programmer literally writes the same condition twice, not when the compiler is being smart and figures out conditions are redundant via VRP or whatever... I mean, -Wduplicated-cond prints "previously used here" notes; where would that point in this case? The covered condition is covered by 2 separate previous conditions; would both get notes? I think this warning would make more sense as part of -Wtautological-compare or -Wlogical-op instead, or as part of a revival of -Wunreachable-code, in which case this would be related to (or a dup of) bug 82100