[clang] [clang] Reapply Handle templated operators with reversed arguments (PR #72213)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 17 00:20:20 PST 2023


usx95 wrote:

This PR is not related to [cwg2804](https://wg21.link/cwg2804). We are already aware of the mentioned issue and are tracking it in https://github.com/llvm/llvm-project/issues/70210.

This PR is different and it fixes an implementation bug in rewriting template non-member operators (the conversion seq was computed incorrectly and associated to incorrect index). The difference in compilers ([godbolt](https://godbolt.org/z/11331KW6e)) you currently see is because of this bug and clang would also correctly consider the example as ambiguous.

https://github.com/llvm/llvm-project/pull/72213


More information about the cfe-commits mailing list