http://llvm.org/bugs/show_bug.cgi?id=20244
Bug ID: 20244
Summary: AddressSanitizer doesn't play well with RTTI on
Windows
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Repro:
-----------------
#include <system_error>
class X : public std::error_category {
virtual const char *name() const _NOEXCEPT { return "X"; }
virtual std::string message(int _Errval) const { return "X"; }
};
int main() {
X x;
}
-----------------
$ clang-cl -fsanitize=address -D_HAS_EXCEPTIONS=0 test.cpp
ninja: no work to do.
libcpmt.lib(syserror.obj) : error LNK2005: "const
std::error_category::`vftable'" (??_7error_category@std@@6B@) already defined
in test-164143.obj
<...>
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs