https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65285

--- Comment #1 from Kostya Serebryany <kcc at gcc dot gnu.org> ---
What happens if you properly include sanitizer/asan_interface.h?

This is what I see with fresh clang:

% cat d.cc 
#include <sanitizer/asan_interface.h>
int foo[10];
int main(void) {
  __asan_describe_address(&foo);
}
% clang -fsanitize=address  d.cc && ./a.out 
0x00000135c820 is located 0 bytes inside of global variable 'foo' defined in
'd.cc:2:5' (0x135c820) of size 40
%

Reply via email to