{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/1253","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/1253/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/1253/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/1253/events","html_url":"https://github.com/dotnet/roslyn/issues/1253","id":61254838,"number":1253,"title":"Compiler crash when using pointers and lambdas","user":{"login":"VSadov","id":8218165,"avatar_url":"https://avatars.githubusercontent.com/u/8218165?v=3","gravatar_id":"","url":"https://api.github.com/users/VSadov","html_url":"https://github.com/VSadov","followers_url":"https://api.github.com/users/VSadov/followers","following_url":"https://api.github.com/users/VSadov/following{/other_user}","gists_url":"https://api.github.com/users/VSadov/gists{/gist_id}","starred_url":"https://api.github.com/users/VSadov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VSadov/subscriptions","organizations_url":"https://api.github.com/users/VSadov/orgs","repos_url":"https://api.github.com/users/VSadov/repos","events_url":"https://api.github.com/users/VSadov/events{/privacy}","received_events_url":"https://api.github.com/users/VSadov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/roslyn/labels/3%20-%20Working","name":"3 - Working","color":"CCCCCC"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-Compilers","name":"Area-Compilers","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/Need%20More%20Info","name":"Need More Info","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"gafter","id":3804346,"avatar_url":"https://avatars.githubusercontent.com/u/3804346?v=3","gravatar_id":"","url":"https://api.github.com/users/gafter","html_url":"https://github.com/gafter","followers_url":"https://api.github.com/users/gafter/followers","following_url":"https://api.github.com/users/gafter/following{/other_user}","gists_url":"https://api.github.com/users/gafter/gists{/gist_id}","starred_url":"https://api.github.com/users/gafter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gafter/subscriptions","organizations_url":"https://api.github.com/users/gafter/orgs","repos_url":"https://api.github.com/users/gafter/repos","events_url":"https://api.github.com/users/gafter/events{/privacy}","received_events_url":"https://api.github.com/users/gafter/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dotnet/roslyn/milestones/1","html_url":"https://github.com/dotnet/roslyn/milestones/1.0%20(stable)","labels_url":"https://api.github.com/repos/dotnet/roslyn/milestones/1/labels","id":937397,"number":1,"title":"1.0 (stable)","description":"This is our 1.0 Milestone. ","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":130,"closed_issues":354,"state":"open","created_at":"2015-01-15T20:45:24Z","updated_at":"2015-05-13T19:45:31Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-03-13T21:33:33Z","updated_at":"2015-05-13T20:39:34Z","closed_at":null,"body":"Compiling the following code with /unsafe causes a crash\r\n\r\n```C#\r\nusing System;\r\nusing System.Threading;\r\n\r\nnamespace ConsoleApplication21\r\n{\r\n    public class FooBar : IDisposable\r\n    {\r\n        [System.Diagnostics.CodeAnalysis.SuppressMessage(\"Microsoft.Design\", \"CA1063:ImplementIDisposableCorrectly\")]\r\n        public void Dispose()\r\n        {\r\n            NativeOverlapped* overlapped = AllocateNativeOverlapped(() => { });\r\n        }\r\n\r\n        private unsafe static NativeOverlapped* AllocateNativeOverlapped(IOCompletionCallback callback, object context, byte[] pinData)\r\n        {\r\n            return null;\r\n        }\r\n    }\r\n}\r\n```\r\n\r\n\r\n\r\n<!---\r\n@huboard:{\"order\":1311.0,\"milestone_order\":1253,\"custom_state\":\"\"}\n-->\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/101807927","html_url":"https://github.com/dotnet/roslyn/issues/1253#issuecomment-101807927","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/1253","id":101807927,"user":{"login":"gafter","id":3804346,"avatar_url":"https://avatars.githubusercontent.com/u/3804346?v=3","gravatar_id":"","url":"https://api.github.com/users/gafter","html_url":"https://github.com/gafter","followers_url":"https://api.github.com/users/gafter/followers","following_url":"https://api.github.com/users/gafter/following{/other_user}","gists_url":"https://api.github.com/users/gafter/gists{/gist_id}","starred_url":"https://api.github.com/users/gafter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gafter/subscriptions","organizations_url":"https://api.github.com/users/gafter/orgs","repos_url":"https://api.github.com/users/gafter/repos","events_url":"https://api.github.com/users/gafter/events{/privacy}","received_events_url":"https://api.github.com/users/gafter/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T20:39:34Z","updated_at":"2015-05-13T20:39:34Z","body":"@MattGertz I was unable to repro the compiler crash with recent versions of Roslyn. The source code in this test should fail to compile, but not crash the compiler. There is a unit test checked in with this precise test. Here is the result of testing it by hand using the command-line compiler.\r\n\r\n```none\r\nC:\\Users\\ngafter\\Documents\\Roslyn>type Test.cs\r\nusing System;\r\nusing System.Threading;\r\n\r\nnamespace ConsoleApplication21\r\n{\r\n    public unsafe class FooBar : IDisposable\r\n    {\r\n        public void Dispose()\r\n        {\r\n            NativeOverlapped* overlapped = AllocateNativeOverlapped(() => { });\r\n        }\r\n\r\n        private unsafe static NativeOverlapped* AllocateNativeOverlapped(IOCompletionCallback callback, object context, byte[] pinData)\r\n        {\r\n            return null;\r\n        }\r\n    }\r\n}\r\nC:\\Users\\ngafter\\Documents\\Roslyn>\"C:\\Program Files (x86)\\MSBuild\\14.0\\Bin\\csc.exe\" /unsafe Test.cs\r\nMicrosoft (R) Visual C# Compiler version 1.0.0.50512\r\nCopyright (C) Microsoft Corporation. All rights reserved.\r\n\r\nTest.cs(10,44): error CS7036: There is no argument given that corresponds to the required formal parameter 'context' of 'FooBar.AllocateNativeOverlapped(IOCompletionCallback, object, byte[])'\r\nerror CS5001: Program does not contain a static 'Main' method suitable for an entry point\r\n```\r\n\r\nWhat issue were you seeing when you tried to verify this?"}}