[LLVMbugs] [Bug 18039] New: [-cxx-abi microsoft] fuzzer believes clang inserted an extra vbptr

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Nov 23 02:09:42 PST 2013


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

            Bug ID: 18039
           Summary: [-cxx-abi microsoft] fuzzer believes clang inserted an
                    extra vbptr
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: david.majnemer at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11597
  --> http://llvm.org/bugs/attachment.cgi?id=11597&action=edit
test case

msvc prints out the following with the attached test case:
ClassName0FieldName0 : 0
ClassName0FieldName1 : 8
   sizeof(ClassName0): 16
__alignof(ClassName0): 8
ClassName0FieldName0 : 8
ClassName0FieldName1 : 16
ClassName1FieldName0 : 4
ClassName1FieldName1 : 6
vbptr(ClassName1): 0
   sizeof(ClassName1): 24
__alignof(ClassName1): 8
ClassName0FieldName0 : 24
ClassName0FieldName1 : 32
ClassName1FieldName0 : 44
ClassName1FieldName1 : 46
ClassName2FieldName0 : 8
ClassName2FieldName1 : 9
ClassName2FieldName2 : 16
vbptr(ClassName2): 0
   sizeof(ClassName2): 48
__alignof(ClassName2): 8
ClassName0FieldName0 : 0
ClassName0FieldName1 : 8
ClassName3FieldName0 : 16
ClassName3FieldName1 : 20
ClassName3FieldName2 : 24
   sizeof(ClassName3): 32
__alignof(ClassName3): 8

clang prints:
ClassName0FieldName0 : 0
ClassName0FieldName1 : 8
   sizeof(ClassName0): 16
__alignof(ClassName0): 8
ClassName0FieldName0 : 8
ClassName0FieldName1 : 16
ClassName1FieldName0 : 4
ClassName1FieldName1 : 6
vbptr(ClassName1): 0
   sizeof(ClassName1): 24
__alignof(ClassName1): 8
ClassName0FieldName0 : 24
ClassName0FieldName1 : 32
ClassName1FieldName0 : 44
ClassName1FieldName1 : 46
ClassName2FieldName0 : 8
ClassName2FieldName1 : 9
ClassName2FieldName2 : 16
vbptr(ClassName2): 0
vbptr(ClassName2): 40
   sizeof(ClassName2): 48
__alignof(ClassName2): 8
ClassName0FieldName0 : 0
ClassName0FieldName1 : 8
ClassName3FieldName0 : 16
ClassName3FieldName1 : 20
ClassName3FieldName2 : 24
   sizeof(ClassName3): 32
__alignof(ClassName3): 8

This output shows that clang has an additional "vbptr(ClassName2): 40"

-- 
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/20131123/d3d9779c/attachment.html>


More information about the llvm-bugs mailing list