Status: New
Owner: ----
CC: [email protected], [email protected]
Labels: Type-Defect Priority-Medium
New issue 279 by [email protected]: Programs with
__attribute__((annotate)) fail to link under AddressSanitizer
http://code.google.com/p/address-sanitizer/issues/detail?id=279
$ cat t.cc
#include <unistd.h>
class A {
public:
__attribute__((annotate("aaa")))
int GetValue();
private:
int value;
};
int A::GetValue() {
return value;
}
int main() {
A a;
return 0;
}
$ clang++ t.cc -o t -std=c++11 -o t -fsanitize=address
/tmp/t-89eeb2.o:(.data+0x0): undefined reference to `.str'
/tmp/t-89eeb2.o:(.data+0x30): undefined reference to `.str1'
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.