This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/64670] -fsanitize=vptr leads to "undefined reference to `typeinfo for class'"
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 09 Feb 2015 21:59:59 +0000
- Subject: [Bug sanitizer/64670] -fsanitize=vptr leads to "undefined reference to `typeinfo for class'"
- Auto-submitted: auto-generated
- References: <bug-64670-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64670
--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Tobias Burnus from comment #5)
> Updated test case (part 1/2): [main file] compile with g++ -fsanitize=vptr
In this test case you have
> #pragma implementation "test.h"
followed by
> # 1 "test2.h" 1
> #pragma interface
so the #pragma implementation doesn't match. If I change it to be "test2.h" I
get the typeinfo for LogListener.