https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101978
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Jakob Weisblat from comment #6) > I think this is the same issue as > https://github.com/google/sanitizers/issues/1259. > > It was fixed in clang at > https://github.com/llvm/llvm-project/commit/ > 16eb853ffdd1a1ad7c95455b7795c5f004402e46. > > There exists an email that seems to indicate someone having submitted a GCC > patch to fix this issue, but I'm not really sure what the process is for > getting such a patch approved or included, and it seems to have been > ignored: https://gcc.gnu.org/pipermail/gcc-patches/2021-April/568749.html > (description) / > https://gcc.gnu.org/pipermail/gcc-patches/2021-April/568758.html (actual > patch) If it is the same issue, then the fix went into GCC 12 with a (few) merge from upstream.