r335781 - DR1687: When overload resolution selects a built-in operator, implicit

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 28 08:01:02 PDT 2018


On Wed, Jun 27, 2018 at 10:30 PM, Richard Smith via cfe-commits
<cfe-commits at lists.llvm.org> wrote:
> Author: rsmith
> Date: Wed Jun 27 13:30:34 2018
> New Revision: 335781
>
> URL: http://llvm.org/viewvc/llvm-project?rev=335781&view=rev
> Log:
> DR1687: When overload resolution selects a built-in operator, implicit
> conversions are only applied to operands of class type, and the second
> standard conversion sequence is not applied.
>
> When diagnosing an invalid builtin binary operator, talk about the
> original types rather than the converted types. If these differ by a
> user-defined conversion, tell the user what happened.

This also had the nice side-effect of making
-Wconstant-logical-operand more powerful, finding three bugs in
Chromium so far: https://crbug.com/857393 :-)


More information about the cfe-commits mailing list