https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60018
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
CC| |egallager at gcc dot gnu.org
--- Comment #4 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Manuel López-Ibáñez from comment #3)
> (In reply to Marek Polacek from comment #2)
> > The issue is that at -O0 conversion_warning gets (fn3(), 0) || 0 and doesn't
> > call unsafe_conversion_p on it, while on -O fold_binary folds away the || 0
> > part and conversion_warning sees COMPOUND_EXPR, it then calls
> > unsafe_conversion_p on it.
>
> But in any case, it should look to the last operand of (... , ...) and see
> that it is a constant 0. I think there is a duplicate already about
> -Wconversion not recursing into compound expressions.
bug 53277 perhaps?