[Issue 20988] New: Missing error for negated array.ptr
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jun 28 17:16:00 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20988
Issue ID: 20988
Summary: Missing error for negated array.ptr
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: moonlightsentinel at disroot.org
The following code compiles without raising an error regarding `arr.ptr`.
void main() @safe
{
uint[] arr = [1, 2, 3];
bool b = !arr.ptr;
}
--
More information about the Digitalmars-d-bugs
mailing list