[Issue 19970] New: [CTFE] 0 ptr is not null

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 15 22:24:44 UTC 2019


          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 at puremagic.com
          Reporter: eyal at weka.io

A bit similar to #6281 :

enum void* p = cast(void*)0;
static assert(p is null);   // fails
assert(p is null);          // succeeds


More information about the Digitalmars-d-bugs mailing list