https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100438
--- Comment #10 from Filipe Brandenburger <filbranden at gmail dot com> --- (In reply to H.J. Lu from comment #9) > Please try: > > https://gcc.gnu.org/pipermail/gcc-patches/2021-August/576603.html > > on GCC master branch. I can create a backport branch for GCC 11 if needed. Thanks! While I didn't manage to test that patch fully (by buliding a new gcc including that change), I managed to locally apply the relevant snippet of the patch to my local /usr/lib/gcc/x86_64-redhat-linux/11/include/serializeintrin.h and confirmed that this did indeed fix the build issue I was seeing. So indeed I consider this issue to be resolved for me with the adoption of that patch.