[LLVMbugs] [Bug 20244] New: AddressSanitizer doesn't play well with RTTI on Windows

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 8 05:53:18 PDT 2014


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: unassignedclangbugs at nondot.org
          Reporter: timurrrr at google.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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 at std@@6B@) already defined
in test-164143.obj
<...>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140708/e36829d9/attachment.html>


More information about the llvm-bugs mailing list