www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13179] New: AA key type TagIndex now requires equality rather

https://issues.dlang.org/show_bug.cgi?id=13179

          Issue ID: 13179
           Summary: AA key type TagIndex now requires equality rather than
                    comparison
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: regression
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: doob me.com

Building Tango with 2.066.0-b5 results in the following error:

tango/text/Regex.d(2532): Error: AA key type TagIndex now requires equality
rather than comparison
tango/text/Regex.d(2532):        Please define opEquals, or remove opCmp to
also rely on default memberwise comparison.

I can see that opEquals should be used and not opCmp for AA keys, but if opCmp
is defined, why doesn't the compiler automatically generate opEquals that calls
opCmp?

--
Jul 21 2014