Thread overview
[Issue 10478] Crappy error message when two operator overloads match
Jul 21, 2017
Vladimir Panteleev
Jul 21, 2017
Vladimir Panteleev
May 11, 2021
RazvanN
Dec 17, 2022
Iain Buclaw
June 26, 2014
https://issues.dlang.org/show_bug.cgi?id=10478

hsteoh@quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
                 CC|                            |hsteoh@quickfur.ath.cx

--
July 21, 2017
https://issues.dlang.org/show_bug.cgi?id=10478

Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=17674

--
July 21, 2017
https://issues.dlang.org/show_bug.cgi?id=10478

Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement

--- Comment #1 from Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> ---
The test case above now incorrectly compiles due to issue 17674, but the bug here can still be observed with the old opXXX operator overloading method.

//////////////// test.d ///////////////
struct S1
{
    int opAdd(S2 other) { return 3; }
}

struct S2
{
    int opAdd_r(S1 other) { return 3; }
}

void main()
{
    auto x = S1.init + S2.init;
}
///////////////////////////////////////

--
May 11, 2021
https://issues.dlang.org/show_bug.cgi?id=10478

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |bootcamp
                 CC|                            |razvan.nitu1305@gmail.com

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=10478

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P4

--