[LLVMbugs] [Bug 16735] New: [-cxx-abi] Out-of-line constructor not emitted if pure virtual functions are present?

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 29 09:59:52 PDT 2013


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

            Bug ID: 16735
           Summary: [-cxx-abi] Out-of-line constructor not emitted if pure
                    virtual functions are present?
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: timurrrr at google.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

As of r187356,

$ clang++ -Xclang -cxx-abi -Xclang microsoft -w -S -o - source.cpp
----------
gives an empty output on this file:
----------
struct X {
  X();
  virtual void f() = 0;
};

X::X() { }
----------

If another class in a different TU inherits X and overrides f(), we get a
link-time unresolved symbol error for the X constructor.

-- 
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/20130729/b341d339/attachment.html>


More information about the llvm-bugs mailing list