[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 22:52:50 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5500



--- Comment #5 from Nicolas Sicard <dransic at free.fr> 2011-01-31 22:50:35 PST ---
> Actually, I think I know what's happening (roughly speaking). This problem is
> caused by bug# 5058. 

I think you are right, these bugs look very similar.

It definitely is related to opAssign, since it never occurs when opAssign is
not redefined. This would also mean that the compiler-generated opAssign is
either not calling invariant() or calling it at the right time, after data is
properly initialized. But I don't know what happens behind the scene in this
matter.

-- 
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