This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]