{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/corefx/issues/5068","repository_url":"https://api.github.com/repos/dotnet/corefx","labels_url":"https://api.github.com/repos/dotnet/corefx/issues/5068/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/corefx/issues/5068/comments","events_url":"https://api.github.com/repos/dotnet/corefx/issues/5068/events","html_url":"https://github.com/dotnet/corefx/issues/5068","id":123032013,"number":5068,"title":"unsafe struct with fixed byte array runtime error","user":{"login":"jageall","id":4592105,"avatar_url":"https://avatars.githubusercontent.com/u/4592105?v=3","gravatar_id":"","url":"https://api.github.com/users/jageall","html_url":"https://github.com/jageall","followers_url":"https://api.github.com/users/jageall/followers","following_url":"https://api.github.com/users/jageall/following{/other_user}","gists_url":"https://api.github.com/users/jageall/gists{/gist_id}","starred_url":"https://api.github.com/users/jageall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jageall/subscriptions","organizations_url":"https://api.github.com/users/jageall/orgs","repos_url":"https://api.github.com/users/jageall/repos","events_url":"https://api.github.com/users/jageall/events{/privacy}","received_events_url":"https://api.github.com/users/jageall/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/corefx/labels/System.Runtime","name":"System.Runtime","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":{"login":"yizhang82","id":6903744,"avatar_url":"https://avatars.githubusercontent.com/u/6903744?v=3","gravatar_id":"","url":"https://api.github.com/users/yizhang82","html_url":"https://github.com/yizhang82","followers_url":"https://api.github.com/users/yizhang82/followers","following_url":"https://api.github.com/users/yizhang82/following{/other_user}","gists_url":"https://api.github.com/users/yizhang82/gists{/gist_id}","starred_url":"https://api.github.com/users/yizhang82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yizhang82/subscriptions","organizations_url":"https://api.github.com/users/yizhang82/orgs","repos_url":"https://api.github.com/users/yizhang82/repos","events_url":"https://api.github.com/users/yizhang82/events{/privacy}","received_events_url":"https://api.github.com/users/yizhang82/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dotnet/corefx/milestones/8","html_url":"https://github.com/dotnet/corefx/milestones/1.0.0-rtm","labels_url":"https://api.github.com/repos/dotnet/corefx/milestones/8/labels","id":1719259,"number":8,"title":"1.0.0-rtm","description":"2016 https://github.com/aspnet/Home/wiki/Roadmap","creator":{"login":"joshfree","id":1302850,"avatar_url":"https://avatars.githubusercontent.com/u/1302850?v=3","gravatar_id":"","url":"https://api.github.com/users/joshfree","html_url":"https://github.com/joshfree","followers_url":"https://api.github.com/users/joshfree/followers","following_url":"https://api.github.com/users/joshfree/following{/other_user}","gists_url":"https://api.github.com/users/joshfree/gists{/gist_id}","starred_url":"https://api.github.com/users/joshfree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshfree/subscriptions","organizations_url":"https://api.github.com/users/joshfree/orgs","repos_url":"https://api.github.com/users/joshfree/repos","events_url":"https://api.github.com/users/joshfree/events{/privacy}","received_events_url":"https://api.github.com/users/joshfree/received_events","type":"User","site_admin":false},"open_issues":94,"closed_issues":54,"state":"open","created_at":"2016-04-19T20:53:30Z","updated_at":"2016-05-08T23:06:56Z","due_on":"2016-06-30T07:00:00Z","closed_at":null},"comments":5,"created_at":"2015-12-18T21:48:54Z","updated_at":"2016-05-08T23:06:56Z","closed_at":"2016-05-08T23:06:56Z","body":"If i create an unsafe struct with an explicit layout and add a fixed byte array to access the data in a lib targeting dotnet5.4, and then try to access that struct in a unit test it compiles ok, but I get a runtime error.  The unit test lib target dnxcore50 as per the instructions on the xunit site.  If i try and access via a method in a third lib also targeting dotnet5.4 it works fine.\r\n\r\nI have a small repo containing a reproduction of the issue here https://github.com/jageall/DNXRuntimeIssueWithFIxedByteArray\r\n\r\nif this behaviour is by design I would expect a compile time error, not a runtime error"},"comment":{"url":"https://api.github.com/repos/dotnet/corefx/issues/comments/217751723","html_url":"https://github.com/dotnet/corefx/issues/5068#issuecomment-217751723","issue_url":"https://api.github.com/repos/dotnet/corefx/issues/5068","id":217751723,"user":{"login":"joshfree","id":1302850,"avatar_url":"https://avatars.githubusercontent.com/u/1302850?v=3","gravatar_id":"","url":"https://api.github.com/users/joshfree","html_url":"https://github.com/joshfree","followers_url":"https://api.github.com/users/joshfree/followers","following_url":"https://api.github.com/users/joshfree/following{/other_user}","gists_url":"https://api.github.com/users/joshfree/gists{/gist_id}","starred_url":"https://api.github.com/users/joshfree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshfree/subscriptions","organizations_url":"https://api.github.com/users/joshfree/orgs","repos_url":"https://api.github.com/users/joshfree/repos","events_url":"https://api.github.com/users/joshfree/events{/privacy}","received_events_url":"https://api.github.com/users/joshfree/received_events","type":"User","site_admin":false},"created_at":"2016-05-08T23:06:56Z","updated_at":"2016-05-08T23:06:56Z","body":"Moving this issue to the CoreCLR repo --  https://github.com/dotnet/coreclr/issues/4854"}}