https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112816
--- Comment #9 from Andrei Elovikov <a.elovikov at gmail dot com> --- Created attachment 56789 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56789&action=edit Another reproducer, now using short instead of int Once the fix is ready, please verify the "uint16_t" version of it passes as well. I'm not familiar with GCC internals to understand if it's a single crash or two different issues. Godbolt link (same as the attached file): https://godbolt.org/z/cEh1W7PdG .