www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14104] New: aa with pointer key type doesn't find existing


          Issue ID: 14104
           Summary: aa with pointer key type doesn't find existing value
           Product: D
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: code dawg.eu

Found in Higgs, apparently introduced by

The key type is const(ubyte)*.

I tracked it down to differing TypeInfos.
On insertion it's TypeInfo_Pointer [1] for opIn it's TypeInfo_P [2].
The latter computes a different hash.



Feb 01 2015