[Bug sanitizer/65285] __asan_describe_address crashes when used with global variable

peter at lekensteyn dot nl gcc-bugzilla@gcc.gnu.org
Mon Mar 2 23:29:00 GMT 2015


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

--- Comment #3 from Peter Wu <peter at lekensteyn dot nl> ---
GCC 4.9.2 cannot include the headers, it blows up on lines such as:
In file included from
/usr/lib/clang/3.5.1/include/sanitizer/common_interface_defs.h:16:0,
                 from
/usr/lib/clang/3.5.1/include/sanitizer/asan_interface.h:17,
                 from <stdin>:1:
/usr/lib/clang/3.5.1/include/stddef.h:42:42: error: missing binary operator
before token "("
 #if !defined(_PTRDIFF_T) || __has_feature(modules)
...

(gcc -I/usr/lib/clang/3.5.1/include ...)

With clang 3.5.1, it works, but *only* with "-x c++" and not "-x c".



More information about the Gcc-bugs mailing list