[Bug sanitizer/64670] -fsanitize=vptr leads to "undefined reference to `typeinfo for class'"

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jan 19 15:58:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64670

--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Created attachment 34487
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34487&action=edit
test_case.ii - compile with g++ -fsanitize=vptr; gives bogus "undefined
reference to `typeinfo for LogListener'"

The attached file shows with "g++ -fsanitize=vptr" (among others):

   undefined reference to `typeinfo for LogListener'

without "-fsanitize=vptr" only the expected undefined references appear.



More information about the Gcc-bugs mailing list