https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109446
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Richard Biener from comment #6) > not sure if we should prevent all of those transforms. But the question is > why ASAN doesn't instrument the generated aggregate copy? Maybe because > in C/C++ you cannot write an aggregate array copy? We do instrument those. But only instrument them by checking the first and last byte of the copy, not all bytes in between (because that would be for inline checking too large - we'd need to emit inline a loop over those bytes).