{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/coreclr/issues/18235","repository_url":"https://api.github.com/repos/dotnet/coreclr","labels_url":"https://api.github.com/repos/dotnet/coreclr/issues/18235/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/coreclr/issues/18235/comments","events_url":"https://api.github.com/repos/dotnet/coreclr/issues/18235/events","html_url":"https://github.com/dotnet/coreclr/issues/18235","id":328518823,"node_id":"MDU6SXNzdWUzMjg1MTg4MjM=","number":18235,"title":"Wrong integer promotion in release","user":{"login":"jakobbotsch","id":7887810,"node_id":"MDQ6VXNlcjc4ODc4MTA=","avatar_url":"https://avatars3.githubusercontent.com/u/7887810?v=4","gravatar_id":"","url":"https://api.github.com/users/jakobbotsch","html_url":"https://github.com/jakobbotsch","followers_url":"https://api.github.com/users/jakobbotsch/followers","following_url":"https://api.github.com/users/jakobbotsch/following{/other_user}","gists_url":"https://api.github.com/users/jakobbotsch/gists{/gist_id}","starred_url":"https://api.github.com/users/jakobbotsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakobbotsch/subscriptions","organizations_url":"https://api.github.com/users/jakobbotsch/orgs","repos_url":"https://api.github.com/users/jakobbotsch/repos","events_url":"https://api.github.com/users/jakobbotsch/events{/privacy}","received_events_url":"https://api.github.com/users/jakobbotsch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-06-01T13:25:28Z","updated_at":"2018-06-01T15:32:27Z","closed_at":null,"author_association":"NONE","body":"For .NET core 2.1, the following program outputs 1023 in debug, but 255 in release.\r\n```csharp\r\nusing System;\r\n\r\nclass C0\r\n{\r\n    public sbyte F;\r\n}\r\n\r\npublic class Program\r\n{\r\n    public static void Main()\r\n    {\r\n        C0 var0 = new C0 { F = -1 };\r\n        ulong var1 = (ulong)(1000 | (byte)var0.F);\r\n        Console.WriteLine(var1);\r\n    }\r\n}\r\n```\r\n\r\n.NET Framework behaves correctly."},"comment":{"url":"https://api.github.com/repos/dotnet/coreclr/issues/comments/393917606","html_url":"https://github.com/dotnet/coreclr/issues/18235#issuecomment-393917606","issue_url":"https://api.github.com/repos/dotnet/coreclr/issues/18235","id":393917606,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzkxNzYwNg==","user":{"login":"jakobbotsch","id":7887810,"node_id":"MDQ6VXNlcjc4ODc4MTA=","avatar_url":"https://avatars3.githubusercontent.com/u/7887810?v=4","gravatar_id":"","url":"https://api.github.com/users/jakobbotsch","html_url":"https://github.com/jakobbotsch","followers_url":"https://api.github.com/users/jakobbotsch/followers","following_url":"https://api.github.com/users/jakobbotsch/following{/other_user}","gists_url":"https://api.github.com/users/jakobbotsch/gists{/gist_id}","starred_url":"https://api.github.com/users/jakobbotsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakobbotsch/subscriptions","organizations_url":"https://api.github.com/users/jakobbotsch/orgs","repos_url":"https://api.github.com/users/jakobbotsch/repos","events_url":"https://api.github.com/users/jakobbotsch/events{/privacy}","received_events_url":"https://api.github.com/users/jakobbotsch/received_events","type":"User","site_admin":false},"created_at":"2018-06-01T15:32:26Z","updated_at":"2018-06-01T15:32:26Z","author_association":"NONE","body":"I opened #18238.\r\n\r\n> And out of curiosity - how did you come up with this example?\r\nAs a project for a university course we wrote a fuzzer that generates C# programs, https://github.com/jakobbotsch/Fuzzlyn. It generates a program, then compares the results of all static and local variables when running in debug and release mode. I have many more examples, but we have no automatic reducer yet, so I have been reducing them to minimal repros by hand. I am not too familiar with the JIT internals, so it is a little hard for me to know which problems are new and which aren't."}}
{"actor":{"display_login":"jakobbotsch"}}