[Bug target/124001] wrong code generated with alignas() on armv8

disservin.social at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Feb 6 22:05:48 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124001

--- Comment #8 from Disservin <disservin.social at gmail dot com> ---
Hi Andrew thanks, it seems like we have some code which looks like this

alignas(64) std::uint8_t foo[1024];
const auto* int_ptr = reinterpret_cast<const std::int32_t*>(foo);

// later dereference int_ptr

as far as we understand it this is a strict aliasing violation, meaning we will
adapt the code, thanks for a hint in the right direction


More information about the Gcc-bugs mailing list