https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101537
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2021-08-12 Summary|-Wconversion false positive |-Wconversion false positive |in ternary |in ternary and |= Component|c++ |c --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. There is code to supress this if both operands of ?: are fine but for some reason it is not triggering. Note I was just looking at that code for another bug.