https://issues.dlang.org/show_bug.cgi?id=19754 --- Comment #15 from kinke <kinke at gmx.net> --- More to the point: void main() { const x = 0; assert(&x == &(cast() x)); // fails; lowered to `assert(& x is &0)` } --