[Bug c++/99565] [11 Regression] Bogus identical branches warning when returning references to union members

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Mar 16 14:18:53 GMT 2021


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

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I think I added OEP_LEXICOGRAPHIC specifically for -Wduplicated-branches
(do_warn_duplicated_branches used it first), so we can have it do whatever we
want for the warning.  So your change looks fine to me.


More information about the Gcc-bugs mailing list