digitalmars.D.bugs - [Issue 20988] New: Missing error for negated array.ptr
- d-bugmail puremagic.com (20/20) Jun 28 2020 https://issues.dlang.org/show_bug.cgi?id=20988
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 puremagic.com Reporter: moonlightsentinel 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; } --
Jun 28 2020