Segfault with std.container.Array but not regular dynamic array

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Tue Nov 27 02:13:38 PST 2012


On 11/26/2012 11:42 PM, Dan wrote:
> Ok, now I really want to know why it crashes. I've narrowed it down to an
> example below. It seems there is a problem with RefCounted being used as value
> in a map.

I don't have the expertise to understand the assembly, but just to note that 
even with all the structs converted to classes, nodes.d only compiles with dmd. 
  With ldmd2 or gdmd it exits with an error:

     container.d:2248: Error: cannot compare const(Tuple!(uint,"id")[]) and 
const(Tuple!(uint,"id")[])

... regardless of whether Node1 and Node2 are declared as structs or classes.



More information about the Digitalmars-d-learn mailing list