[Issue 5500] Appender.put causes an invariant violation in struct with overloaded opAssign
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jan 31 17:43:11 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5500
--- Comment #4 from Jonathan M Davis <jmdavisProg at gmx.com> 2011-01-31 17:40:56 PST ---
Actually, I think I know what's happening (roughly speaking). This problem is
caused by bug# 5058. Appender has uninitialized data which it then tries to
assign to using the assignment operator. Because the invariant is called before
opAssign (which I argue in bug# 5058, that it shouldn't be), the invariant is
called on garbage data. Sometimes, that garbage data violates the invariant,
and sometimes it doesn't. So, unless there's something that Appender can do to
work around bug# 5058, it's likely not a bug in Appender so much as it's a bug
in how invariants work with regards to opAssign.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list