https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65211
--- Comment #4 from Allan Jensen <linux at carewolf dot com> --- Note either removing the template argument or moving the typedef out of the function both solve the issue, and makes gcc use an unaligned load.