https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118449
--- Comment #2 from Iain Buclaw <ibuclaw at gcc dot gnu.org> --- (In reply to Iain Buclaw from comment #1) > I think the reported line number slightly off. > > Ran it with -fsanitize=alignment and got this. > > ../../../../libphobos/libdruntime/core/internal/gc/blockmeta.d:143:21: > runtime error: store to misaligned address 0x590c2c6107b3 for type 'ushort', > which requires 2 byte alignment > 0x590c2c6107b3: note: pointer points here > 00 00 00 00 00 00 00 00 00 51 00 00 00 00 00 00 00 75 6e 64 65 66 69 6e > 65 64 20 73 79 6d 62 6f > ^ This points at the set above the if condition. ``` else { // setting the initial length, no cas needed *length = cast(ushort)newlength; } ```