[Issue 21109] Possibly wrong codegen when using enum arrays

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 4 04:23:51 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=21109

--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> ---
I think this is related to `sort`. It's possible that sort compares by pointers
if two structs are otherwise equivalent.

And then using `enum` has a different effect on arrays, possibly optimizing and
storing the same pointer in two structs (making them equal).

--


More information about the Digitalmars-d-bugs mailing list