On 5/28/26 16:54, Patrick Palka wrote:
> Does this do the right thing if we have a non-template and template
> overload:
>
> strut A {
> operator int();
> template<class T> operator T();
> };Sorry, I submitted this patch by mistake. The proper patch is here: https://gcc.gnu.org/pipermail/gcc-patches/2026-May/717939.html With it, this code compiles: struct A { operator int() { return {}; }; template<class T> operator T() { return {}; }; }; int main() { &A::operator int; &A::operator long; }
