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

2021-03-15 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99565 --- Comment #2 from Johel Ernesto Guerrero Peña --- ``` : In member function 'int& A::x()': :6:23: warning: this condition has identical branches [-Wduplicated-branches] 6 | int& x() { return 0 ? a : b; } |

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

2021-03-15 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99565 Richard Biener changed: What|Removed |Added Last reconfirmed||2021-03-15 Ever confirmed|0