[Issue 22646] [REG2.099] CT bounds checking ignores short circuit evaluation
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 18 14:21:37 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22646
moonlightsentinel at disroot.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |moonlightsentinel at disroot.o
| |rg
Resolution|FIXED |---
--- Comment #5 from moonlightsentinel at disroot.org ---
The patch does not work for static arrays that are also affected by this
regression:
static template Bug(T, const T name)
{
enum bool ok = name.length < 3 || name[0..3] != "pad";
}
pragma(msg, Bug!(char[1], "x").ok);
--
More information about the Digitalmars-d-bugs
mailing list