This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

            Bug ID: 64670
           Summary: -fsanitize=vptr leads to "undefined reference to
                    `typeinfo for class'"
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
                CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
                    jakub at gcc dot gnu.org, kcc at gcc dot gnu.org

I have a class of the form
  class name {
    virtual ~name() {};
    virtual void func() = 0;
  };

Using -fsanitize=vptr leads to an "undefined reference to `typeinfo for name'".

I'll try to come up with a test case.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]