[Issue 10223] Variant[] within Variant[] can be accessed, but not assigned to
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 28 16:22:20 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=10223
berni44 <bugzilla at d-ecke.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at d-ecke.de
--- Comment #2 from berni44 <bugzilla at d-ecke.de> ---
I tried to hunt the bug down, but did only succeed partially. I'll write here,
what I could find out. Maybe this is of some help for someone else:
* The crash happens inside of the @trusted part of the destructor of VariantN.
* When top[0][0] = "foo" is executed, opAssign is called twice, first with
parameter "foo" and second with parameter 0, which is the value of the second
bracket. Feels a little bit like this 0 is the wrong thing to assign here, but
I'm not sure.
--
More information about the Digitalmars-d-bugs
mailing list