[LLVMbugs] [Bug 11523] New: Arrays of pointers to data members are not zero-initialized correctly

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Dec 9 07:36:08 PST 2011


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

             Bug #: 11523
           Summary: Arrays of pointers to data members are not
                    zero-initialized correctly
           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 7699
  --> http://llvm.org/bugs/attachment.cgi?id=7699
test case

Elements of arrays of pointers to data members should be set to "-1" when such
arrays are zero-initialized, as Itanium C++ ABI requires. But they are
initialized to 0 by clang. See the attached test case.

A possible fix is also attached. I didn't compile and test it, but it
highlights the relevant place in the source code.

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