llvm-project
7ac3c622 - Revert "[Clang] Do not treat Foo -> const Foo conversion sequences as perfect" (#149272)

Commit
221 days ago
Revert "[Clang] Do not treat Foo -> const Foo conversion sequences as perfect" (#149272) Reverts llvm/llvm-project#148613 Considering object argument conversion qualifications perfect leads to situations where we prefer a non-template const qualified function over a non-qualified template function, which is very wrong indeed. I explored solutions to work around that, but instead, we might want to go the GCC road and prefer the friend overload in the #147374 example, as this seems a lot more consistent and reliable (cherry picked from commit 28e1e7e1b4b059a2e42f68061475cddb4ad0a6a3)
Author
Committer
tru tru
Parents
Loading