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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to