[LLVMbugs] [Bug 10512] New: Error generating constructor for nested anonymous structs

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jul 27 07:59:32 PDT 2011


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

           Summary: Error generating constructor for nested anonymous
                    structs
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: clang at moocow37.plus.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Created an attachment (id=6951)
 --> (http://llvm.org/bugs/attachment.cgi?id=6951)
test case for nested anonymous struct constructor compiler bug

The attached test program causes an assert "Invalid GetElementPtrInst indices
for type!" when generating the constructor.  Top of stack is:

llvm::checkGEPType()
llvm::GetElementPtrInst::Create()
llvm::GetElementPtrInst::CreateInBounds()
llvm::IRBuilder<1,llvm::ConstantFolder,llvm::IRBuilderDefaultInserter<1>
>::CreateConstInBoundsGEP2_32()
llvm::IRBuilder<1,llvm::ConstantFolder,llvm::IRBuilderDefaultInserter<1>
>::CreateStructGEP()
clang::CodeGen::CodeGenFunction::EmitLValueForField()

Full output attached and test program.

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