http://llvm.org/bugs/show_bug.cgi?id=21359

            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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to