On 7/11/2016 10:50 AM, deadalnix wrote: > foo assume that creating an invalid pointer is not safe, while bar > assume that .ptr is safe as it doesn't access memory. If the slice's > size is 0, that is not safe. There's a PR to fix this: https://github.com/dlang/dmd/pull/5860