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

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jan 19 16:14:00 GMT 2015


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Seems clang++ -fsanitize=vptr -O0 emits the _ZTI11LogListener object in the
assembly, while without -fsanitize=vptr it does not.  g++ doesn't emit the
definition of it in either case, but with -fsanitize=vptr emits a use.  Jason,
what do you think about this?  Shall we force emission of the _ZTI11LogListener
despire #pragma implementation, or don't instrument, something else?



More information about the Gcc-bugs mailing list