https://issues.dlang.org/show_bug.cgi?id=17654
--- Comment #3 from Steven Schveighoffer <schvei...@yahoo.com> --- I'm not sure the UB rules for D and aliasing. In C you definitely can run into things like the array cast being considered unrelated. The class case is definitely a bug. --