[LLVMbugs] [Bug 21368] New: delete of final class not devirtualized

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Oct 24 05:41:51 PDT 2014


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

            Bug ID: 21368
           Summary: delete of final class not devirtualized
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: benny.kra at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

struct A {
  virtual ~A() {}
};

struct B final : public A {};

void foo(B *b) { delete b; }

===

For 'foo' we emit a dtor call through the vtable even though the 'B' is final.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141024/a953d6e2/attachment.html>


More information about the llvm-bugs mailing list