June 15, 2019 [Issue 19970] New: [CTFE] 0 ptr is not null | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19970 Issue ID: 19970 Summary: [CTFE] 0 ptr is not null Product: D Version: D2 Hardware: All URL: http://dlang.org/ OS: All Status: NEW Severity: major Priority: P3 Component: dmd Assignee: nobody@puremagic.com Reporter: eyal@weka.io A bit similar to #6281 : enum void* p = cast(void*)0; static assert(p is null); // fails assert(p is null); // succeeds -- |
Copyright © 1999-2021 by the D Language Foundation