{"action":"closed","issue":{"url":"https://api.github.com/repos/ldc-developers/ldc/issues/995","labels_url":"https://api.github.com/repos/ldc-developers/ldc/issues/995/labels{/name}","comments_url":"https://api.github.com/repos/ldc-developers/ldc/issues/995/comments","events_url":"https://api.github.com/repos/ldc-developers/ldc/issues/995/events","html_url":"https://github.com/ldc-developers/ldc/issues/995","id":94565339,"number":995,"title":"Assertion `(T->isOpaque() || V[i]->getType() == T->getElementType(i)) && \"Initializer for struct element doesn't match struct element type!\"' failed.","user":{"login":"redstar","id":827859,"avatar_url":"https://avatars.githubusercontent.com/u/827859?v=3","gravatar_id":"","url":"https://api.github.com/users/redstar","html_url":"https://github.com/redstar","followers_url":"https://api.github.com/users/redstar/followers","following_url":"https://api.github.com/users/redstar/following{/other_user}","gists_url":"https://api.github.com/users/redstar/gists{/gist_id}","starred_url":"https://api.github.com/users/redstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redstar/subscriptions","organizations_url":"https://api.github.com/users/redstar/orgs","repos_url":"https://api.github.com/users/redstar/repos","events_url":"https://api.github.com/users/redstar/events{/privacy}","received_events_url":"https://api.github.com/users/redstar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-12T13:27:33Z","updated_at":"2015-09-18T07:29:19Z","closed_at":"2015-09-18T07:29:19Z","body":"LDC 0.15.2-beta2 on Linux x86_64.\r\n\r\nHappens with current vibe.d master, compiling the auth_digest example.\r\n\r\n    ldc2: /xtra/llvm-git/llvm-3.6.0.src/lib/IR/Constants.cpp:954: llvm::ConstantStruct::ConstantStruct(llvm::StructType*, llvm::ArrayRef<llvm::Constant*>): Assertion `(T->isOpaque() || V[i]->getType() == T->getElementType(i)) && \"Initializer for struct element doesn't match struct element type!\"' failed.\r\n    #0 0x2556da8 llvm::sys::PrintStackTrace(_IO_FILE*) /xtra/llvm-git/llvm-3.6.0.src/lib/Support/Unix/Signals.inc:423:0\r\n    #1 0x2557043 PrintStackTraceSignalHandler(void*) /xtra/llvm-git/llvm-3.6.0.src/lib/Support/Unix/Signals.inc:481:0\r\n    #2 0x2555c65 SignalHandler(int) /xtra/llvm-git/llvm-3.6.0.src/lib/Support/Unix/Signals.inc:198:0\r\n    #3 0x7f5dec3f7d30 (/lib64/libpthread.so.0+0xfd30)\r\n    #4 0x7f5dead69e67 gsignal (/lib64/libc.so.6+0x34e67)\r\n    #5 0x7f5dead6b1ca abort (/lib64/libc.so.6+0x361ca)\r\n    #6 0x7f5dead63026 (/lib64/libc.so.6+0x2e026)\r\n    #7 0x7f5dead630d2 (/lib64/libc.so.6+0x2e0d2)\r\n    #8 0x223f71c llvm::ConstantStruct::ConstantStruct(llvm::StructType*, llvm::ArrayRef<llvm::Constant*>) /xtra/llvm-git/llvm-3.6.0.src/lib/IR/Constants.cpp:952:0\r\n    #9 0x224dfcb llvm::ConstantAggrKeyType<llvm::ConstantStruct>::create(llvm::StructType*) const /xtra/llvm-git/llvm-3.6.0.src/lib/IR/ConstantsContext.h:371:0\r\n    #10 0x224c519 llvm::ConstantUniqueMap<llvm::ConstantStruct>::create(llvm::StructType*, llvm::ConstantAggrKeyType<llvm::ConstantStruct>) /xtra/llvm-git/llvm-3.6.0.src/lib/IR/ConstantsContext.h:564:0\r\n    #11 0x2249e0d llvm::ConstantUniqueMap<llvm::ConstantStruct>::getOrCreate(llvm::StructType*, llvm::ConstantAggrKeyType<llvm::ConstantStruct>) /xtra/llvm-git/llvm-3.6.0.src/lib/IR/ConstantsContext.h:580:0\r\n    #12 0x223f91c llvm::ConstantStruct::get(llvm::StructType*, llvm::ArrayRef<llvm::Constant*>) /xtra/llvm-git/llvm-3.6.0.src/lib/IR/Constants.cpp:985:0\r\n    #13 0xedfe79 IrAggr::getVtblInit() /xtra/ldc-2.066/ir/irclass.cpp:234:0\r\n    #14 0xf1a759 CodegenVisitor::visit(ClassDeclaration*) /xtra/ldc-2.066/gen/declarations.cpp:176:0\r\n    #15 0xe1fc4c ClassDeclaration::accept(Visitor*) /xtra/ldc-2.066/dmd2/aggregate.h:309:0\r\n    #16 0xf1b41a CodegenVisitor::visit(AttribDeclaration*) /xtra/ldc-2.066/gen/declarations.cpp:385:0\r\n    #17 0xce1392 Visitor::visit(ProtDeclaration*) /xtra/ldc-2.066/dmd2/visitor.h:377:0\r\n    #18 0xdb3ea4 ProtDeclaration::accept(Visitor*) /xtra/ldc-2.066/dmd2/attrib.h:117:0\r\n    #19 0xf1ba99 Declaration_codegen(Dsymbol*) /xtra/ldc-2.066/gen/declarations.cpp:495:0\r\n    #20 0xe56e1c codegenModule(IRState*, Module*, bool) /xtra/ldc-2.066/gen/module.cpp:740:0\r\n    #21 0xcbe812 ldc::CodeGenerator::emit(Module*) /xtra/ldc-2.066/driver/codegenerator.cpp:203:0\r\n    #22 0xcd4c9c main /xtra/ldc-2.066/driver/main.cpp:1289:0\r\n    #23 0x7f5dead56aa5 __libc_start_main (/lib64/libc.so.6+0x21aa5)\r\n    #24 0xca5989 _start (/xtra/build-ldc-2.066/bin/ldc2+0xca5989)\r\n\r\nNo reduces test case yet. Happens at least with LLVM 3.5 and LLVM 3.6."}}