On 2014-02-25 22:51, Steven Schveighoffer wrote:
If the compiler generates opEquals and opCmp, then it's guaranteed opEquals(x, y) is equivalent to opCmp(x, y) == 0.The compiler should NOT complain about this, which I should have more clearly stated (I thought I had).
Filed as [1]. Unfortunately I wasn't able to find a reduced test case. [1] https://d.puremagic.com/issues/show_bug.cgi?id=12267 -- /Jacob Carlborg