[LLVMbugs] [Bug 7611] New: Not emitting covariant thunk

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 9 09:42:47 PDT 2010


           Summary: Not emitting covariant thunk
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: dgregor at apple.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


struct A
 virtual A* f();

struct B: virtual A
 virtual A* f();

struct C: B
 virtual C* f();

C* C::f() { return 0; }

clang is omitting the virtual this+virtual return thunk
(_ZTcv0_n12_v0_n16_N1C1fEv), and emitting a virtual this only thunk
(_ZTv0_n12_N1C1fEv) instead.

(thanks to Jason M for reporting this issue!)

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list