http://d.puremagic.com/issues/show_bug.cgi?id=7783
Summary: compiler generated struct equality doesn't compare array fields Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: d...@dawgfoto.de --- Comment #0 from d...@dawgfoto.de 2012-03-25 22:10:53 PDT --- cat > bug.d << CODE struct Foo { string name; bool b; } void main() { auto a = Foo("foobar".idup, true); auto b = Foo("foobar".idup, true); assert(a == b); } CODE dmd -run bug -------- The structures are compared bitwise which fails here. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------