[Issue 15422] [REG2.066] associative array of nested struct - crash on usage
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Feb 1 09:14:22 PST 2016
https://issues.dlang.org/show_bug.cgi?id=15422
--- Comment #5 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/d789012d8630619ee34a680724e4f4ca1e4f091b
fix Issue 15422 - associative array of nested struct - crash on usage
If a struct is nested in a class, its `vthis` will be reference to the parent
class, and struct default equality and hashing considers the parent class
equality and hashing.
Otherwise, the `vthis` will be typed as void*, and pointer equality and hashing
is merely used.
https://github.com/D-Programming-Language/dmd/commit/92b3fead80829a3dd4e8618dc5533bd62b1f455c
Merge pull request #5391 from 9rnsr/fix15422
[REG2.066] Issue 15422 - associative array of nested struct - crash on usage
--
More information about the Digitalmars-d-bugs
mailing list