https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65792
--- Comment #7 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- Created attachment 35352 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35352&action=edit Cumulated patch for PR61831 and 65792 > Can you post a testcase for the remaining bug there? > I have lost sight of what is missing. I have attached the patch I have applied on top of a clean tree at r222212 and regtested. As said before the patch fixes also pr49324. Note that I have tested with ! { dg-additional-options "-fsanitize=address" } IIRC this is not available on all targets.