{"action":"opened","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/9020","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/9020/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/9020/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/9020/events","html_url":"https://github.com/dotnet/roslyn/issues/9020","id":135552547,"number":9020,"title":"InvalidCastException in `BoundAddressOfOperator.Reference` property in C#","user":{"login":"genlu","id":788783,"avatar_url":"https://avatars.githubusercontent.com/u/788783?v=3","gravatar_id":"","url":"https://api.github.com/users/genlu","html_url":"https://github.com/genlu","followers_url":"https://api.github.com/users/genlu/followers","following_url":"https://api.github.com/users/genlu/following{/other_user}","gists_url":"https://api.github.com/users/genlu/gists{/gist_id}","starred_url":"https://api.github.com/users/genlu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genlu/subscriptions","organizations_url":"https://api.github.com/users/genlu/orgs","repos_url":"https://api.github.com/users/genlu/repos","events_url":"https://api.github.com/users/genlu/events{/privacy}","received_events_url":"https://api.github.com/users/genlu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-Analyzers","name":"Area-Analyzers","color":"5319e7"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/New%20Feature%20-%20IOperation","name":"New Feature - IOperation","color":"bfd4f2"}],"state":"open","locked":false,"assignee":{"login":"genlu","id":788783,"avatar_url":"https://avatars.githubusercontent.com/u/788783?v=3","gravatar_id":"","url":"https://api.github.com/users/genlu","html_url":"https://github.com/genlu","followers_url":"https://api.github.com/users/genlu/followers","following_url":"https://api.github.com/users/genlu/following{/other_user}","gists_url":"https://api.github.com/users/genlu/gists{/gist_id}","starred_url":"https://api.github.com/users/genlu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genlu/subscriptions","organizations_url":"https://api.github.com/users/genlu/orgs","repos_url":"https://api.github.com/users/genlu/repos","events_url":"https://api.github.com/users/genlu/events{/privacy}","received_events_url":"https://api.github.com/users/genlu/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dotnet/roslyn/milestones/4","html_url":"https://github.com/dotnet/roslyn/milestones/1.2","labels_url":"https://api.github.com/repos/dotnet/roslyn/milestones/4/labels","id":937402,"number":4,"title":"1.2","description":"This is our 1.2 Milestone.\r\n\r\n<!---\r\n@huboard:{\"order\":2.0}\r\n-->\r\n","creator":{"login":"jaredpar","id":146967,"avatar_url":"https://avatars.githubusercontent.com/u/146967?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredpar","html_url":"https://github.com/jaredpar","followers_url":"https://api.github.com/users/jaredpar/followers","following_url":"https://api.github.com/users/jaredpar/following{/other_user}","gists_url":"https://api.github.com/users/jaredpar/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredpar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredpar/subscriptions","organizations_url":"https://api.github.com/users/jaredpar/orgs","repos_url":"https://api.github.com/users/jaredpar/repos","events_url":"https://api.github.com/users/jaredpar/events{/privacy}","received_events_url":"https://api.github.com/users/jaredpar/received_events","type":"User","site_admin":false},"open_issues":272,"closed_issues":537,"state":"open","created_at":"2015-01-15T20:48:55Z","updated_at":"2016-02-22T21:38:03Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-02-22T21:38:03Z","updated_at":"2016-02-22T21:38:03Z","closed_at":null,"body":"This is caused by `Opearand` being BoundBadExpression, which can be repro'd with OperationWalker hooked up in followint tests:\r\n```\r\nMicrosoft.CodeAnalysis.CSharp.UnitTests.SemanticErrorTests.CS0211ERR_InvalidAddrOp\r\nMicrosoft.CodeAnalysis.CSharp.UnitTests.SemanticErrorTests.CS0459ERR_AddrOnReadOnlyLocal\r\nMicrosoft.CodeAnalysis.CSharp.UnitTests.UnsafeTests.AddressOfExpressionKinds_Dereference\r\nMicrosoft.CodeAnalysis.CSharp.UnitTests.UnsafeTests.AddressOfLambdaExpr2\r\nMicrosoft.CodeAnalysis.CSharp.UnitTests.UnsafeTests.AddressOfExpressionKinds_Failure\r\nMicrosoft.CodeAnalysis.CSharp.UnitTests.UnsafeTests.AddressOfExpressionKinds_ReadOnlyLocal\r\nMicrosoft.CodeAnalysis.CSharp.UnitTests.UnsafeTests.FixedInitializerRefersToPreviousVariable\r\nMicrosoft.CodeAnalysis.CSharp.UnitTests.UnsafeTests.AddressOfLambdaExpr1\r\nMicrosoft.CodeAnalysis.CSharp.UnitTests.UnsafeTests.AddressOfMethodGroup\r\n```"}}