https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79258
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> --- I'm not sure. By the time we get into the warning we have return <retval> = Base::state () in both of the branches and that is deemed equal. We probably shouldn't warn, but I don't know yet how to prevent it.