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