{"action":"opened","issue":{"url":"https://api.github.com/repos/ldc-developers/ldc/issues/965","labels_url":"https://api.github.com/repos/ldc-developers/ldc/issues/965/labels{/name}","comments_url":"https://api.github.com/repos/ldc-developers/ldc/issues/965/comments","events_url":"https://api.github.com/repos/ldc-developers/ldc/issues/965/events","html_url":"https://github.com/ldc-developers/ldc/issues/965","id":85726135,"number":965,"title":"Assertion failed: (getOperand(0)->getType() == cast<PointerType>(getOperand(1)->getType())->getElementType() && \"Ptr must be a pointer to Val type!\"), function AssertOK, file Instructions.cpp, line 1083.","user":{"login":"timotheecour","id":2194784,"avatar_url":"https://avatars.githubusercontent.com/u/2194784?v=3","gravatar_id":"","url":"https://api.github.com/users/timotheecour","html_url":"https://github.com/timotheecour","followers_url":"https://api.github.com/users/timotheecour/followers","following_url":"https://api.github.com/users/timotheecour/following{/other_user}","gists_url":"https://api.github.com/users/timotheecour/gists{/gist_id}","starred_url":"https://api.github.com/users/timotheecour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timotheecour/subscriptions","organizations_url":"https://api.github.com/users/timotheecour/orgs","repos_url":"https://api.github.com/users/timotheecour/repos","events_url":"https://api.github.com/users/timotheecour/events{/privacy}","received_events_url":"https://api.github.com/users/timotheecour/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-06T09:08:58Z","updated_at":"2015-06-06T09:08:58Z","closed_at":null,"body":"ldc2 -c -od=/tmp/d08 main.d\r\n//main.d:\r\n\r\n```d\r\nclass A{}\r\nvoid fun() {\r\n    A a;\r\n    auto b=a?typeid(a):typeid(a);\r\n}\r\n```\r\n\r\nAssertion failed: (getOperand(0)->getType() == cast<PointerType>(getOperand(1)->getType())->getElementType() && \"Ptr must be a pointer to Val type!\"), function AssertOK, file Instructions.cpp, line 1083.\r\n0  ldc2                     0x0000000108e35ad1 llvm::sys::PrintStackTrace(__sFILE*) + 57\r\n1  ldc2                     0x0000000108e36027 SignalHandler(int) + 217\r\n2  libsystem_platform.dylib 0x00007fff9a658f1a _sigtramp + 26\r\n3  ldc2                     0x00000001091cbc27 nuls + 69727\r\n4  ldc2                     0x0000000108e35eb6 abort + 22\r\n5  ldc2                     0x0000000108e35ea0 abort + 0\r\n6  ldc2                     0x0000000108dcc43b llvm::StoreInst::AssertOK() + 211\r\n7  ldc2                     0x000000010853df39 DtoStore(llvm::Value*, llvm::Value*) + 105\r\n8  ldc2                     0x00000001085396cd ToElemVisitor::visit(CondExp*) + 749\r\n9  ldc2                     0x00000001085357cc ToElemVisitor::visit(AssignExp*) + 1164\r\n10 ldc2                     0x000000010852cfaa toElem(Expression*) + 58\r\n11 ldc2                     0x00000001084f9edf DtoVarDeclaration(VarDeclaration*) + 815\r\n12 ldc2                     0x00000001084fa0d9 DtoDeclarationExp(Dsymbol*) + 313\r\n13 ldc2                     0x0000000108530db7 ToElemVisitor::visit(DeclarationExp*) + 87\r\n14 ldc2                     0x000000010852d226 toElemDtor(Expression*) + 614\r\n15 ldc2                     0x000000010851c4f2 ToIRVisitor::visit(ExpStatement*) + 130\r\n16 ldc2                     0x000000010851c584 ToIRVisitor::visit(CompoundStatement*) + 116\r\n\r\nldc2 --version\r\n\r\nLDC - the LLVM D compiler (9d3dd1):\r\n  based on DMD v2.066.1 and LLVM 3.6.1\r\n  Default target: x86_64-apple-darwin14.3.0\r\n  Host CPU: core-avx2\r\n\r\n"}}