[LLVMbugs] [Bug 21359] New: Sanitizer link error looking for typeinfo

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Oct 23 12:09:03 PDT 2014


            Bug ID: 21359
           Summary: Sanitizer link error looking for typeinfo
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: phantall+llvm at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 13243
  --> http://llvm.org/bugs/attachment.cgi?id=13243&action=edit
A class with virtual functions with no definition

clang 3.4 / 3.5, gcc 4.7 / 4.9, and sun studio (12.3 & 12.4) compile and link
the example fine; this is only an issue when using sanitizers.  When built with
-fsanitize=undefined using gcc 4.9.0, it also compiles/links fine.

When the 'virtual' keyword is removed from the example code it fails to link
with or without the sanitizer.

The error received:

/tmp/main-c376a0.o:(.data+0x48): undefined reference to 'typeinfo for Blah'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

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/20141023/c04b47de/attachment.html>

More information about the llvm-bugs mailing list