[Issue 14643] Safety violation with final switch and void initializer
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jan 21 16:53:26 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=14643
--- Comment #3 from Nick Treleaven <nick at geany.org> ---
> the bug might not even be reproducible
Oops, the original bug also violates safety anyway. The above comment combined
with the original example means that any enum value outside its min and max
properties can produce an uninitialized pointer in safe code, void
initialization is not required. The solution seems to be to fix issue 11051.
--
More information about the Digitalmars-d-bugs
mailing list