https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103453
--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:ad54d3fb8f09babc43ea46a93cc73cd623fe822f commit r11-9436-gad54d3fb8f09babc43ea46a93cc73cd623fe822f Author: Jonathan Wakely <jwak...@redhat.com> Date: Tue Nov 30 13:14:38 2021 +0000 libstdc++: Make Asan detection work for Clang [PR103453] Clang doesn't define __SANITIZE_ADDRESS__ so use its __has_feature check to detect Asan instead. libstdc++-v3/ChangeLog: PR libstdc++/103453 * config/allocator/malloc_allocator_base.h (_GLIBCXX_SANITIZE_STD_ALLOCATOR): Define for Clang. * config/allocator/new_allocator_base.h (_GLIBCXX_SANITIZE_STD_ALLOCATOR): Likewise. (cherry picked from commit cca6090b13ab503bef1cfa327e2d107789d6bd30)