A bit similar to #6281 : enum void* p = cast(void*)0; static assert(p is null); // fails assert(p is null); // succeeds
@Geod24 created dlang/dmd pull request #11782 "Fix 19970 - Cast from 0 to ptr is not null at CTFE" fixing this issue: - Fix 19970 - Cast from 0 to ptr is not null at CTFE https://github.com/dlang/dmd/pull/11782
dlang/dmd pull request #11782 "Fix 19970 - Cast from 0 to ptr is not null at CTFE" was merged into master: - 9b163a7d9b7ab0cf6b87e69e218476aae75903c9 by Geod24: Fix 19970 - Cast from 0 to ptr is not null at CTFE https://github.com/dlang/dmd/pull/11782