[Issue 24646] `is` test broken for invalid bools
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 3 13:53:47 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24646
--- Comment #1 from Bolpat <qs.il.paperinik at gmail.com> ---
Masking the `bool` for the `is` test is wrong. A struct with padding bits has
its padding bits compared by `is` as well. For all intents and purposes, a
`bool` is a struct around a `ubyte` with the invariant that its value is only
ever 0 or 1.
--
More information about the Digitalmars-d-bugs
mailing list