[LLVMbugs] [Bug 11487] New: pointers to data members in unions are not initialized to -1

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 6 02:45:00 PST 2011


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

             Bug #: 11487
           Summary: pointers to data members in unions are not initialized
                    to -1
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: shatrov at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 7677
  --> http://llvm.org/bugs/attachment.cgi?id=7677
test case

According to C++ ABI, null pointers to data members are represented as "-1".
Clang does not obey this rule for members of a union (see the attached test
case).

-- 
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