Thread overview
[Issue 4290] 'Fragile' opCmp/toHash signature errors
Mar 20, 2017
Daniel Čejchan
Jul 05, 2017
Vladimir Panteleev
June 09, 2015
https://issues.dlang.org/show_bug.cgi?id=4290

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|future                      |D2

--
March 20, 2017
https://issues.dlang.org/show_bug.cgi?id=4290

Daniel Čejchan <czdanol@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |czdanol@gmail.com

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=11591
         Resolution|---                         |WORKSFORME

--- Comment #11 from Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> ---
The program now correctly fails to compile with the error message:

test.d(14): Error: AA key type Foo should have 'size_t toHash() const nothrow
@safe' if opEquals defined

The respective change is https://github.com/dlang/dmd/pull/3054.

--