{"action":"closed","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/2207","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/2207/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/2207/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/2207/events","html_url":"https://github.com/dotnet/roslyn/issues/2207","id":70405225,"number":2207,"title":"[Regression from VS2013 compiler] Incorrect RVAs emitted for identical method bodies ","user":{"login":"mavasani","id":10605811,"avatar_url":"https://avatars.githubusercontent.com/u/10605811?v=3","gravatar_id":"","url":"https://api.github.com/users/mavasani","html_url":"https://github.com/mavasani","followers_url":"https://api.github.com/users/mavasani/followers","following_url":"https://api.github.com/users/mavasani/following{/other_user}","gists_url":"https://api.github.com/users/mavasani/gists{/gist_id}","starred_url":"https://api.github.com/users/mavasani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mavasani/subscriptions","organizations_url":"https://api.github.com/users/mavasani/orgs","repos_url":"https://api.github.com/users/mavasani/repos","events_url":"https://api.github.com/users/mavasani/events{/privacy}","received_events_url":"https://api.github.com/users/mavasani/received_events","type":"User","site_admin":false},"labels":[{"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/Compatibility","name":"Compatibility","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-23T12:56:24Z","updated_at":"2015-04-23T13:26:02Z","closed_at":"2015-04-23T13:26:02Z","body":"1) Compile below C# code into a dll, i.e. `csc /t:library temp.cs`\r\n\r\n```\r\n// temp.cs\r\npublic class C\r\n{\r\n    private void Method1(int x)\r\n    {\r\n        System.Console.WriteLine(x);\r\n    }\r\n\r\n    private void Method2(int x)\r\n    {\r\n        System.Console.WriteLine(x);\r\n    }\r\n}\r\n```\r\n\r\n2) `ildasm temp.dll` and note the RVAs emitted for Method1 and Method2\r\n\r\n**Actual**: Both methods have same start RVA\r\n![dev14_start_rva](https://cloud.githubusercontent.com/assets/10605811/7297353/e5e25978-e97c-11e4-97e0-135e6221cb77.png)\r\n\r\n**Expected**: Both methods have distinct start RVAs.\r\nThis is a **regression** from VS2013 compiler, where both methods do have distinct start RVAs:\r\n![dev12_start_rva](https://cloud.githubusercontent.com/assets/10605811/7297363/eb943d64-e97c-11e4-8873-a444b1271b5a.png)\r\n\r\nNote that the generated assembly for Roslyn compiler has separate, though identical, IL emitted for both method bodies, so this looks like clearly a bug in Roslyn compiler's code generator. Also note that the generated pdb shows distinct RVA spans for these methods (run Dia2Dump.exe on the pdb to confirm).\r\n\r\nSee internal bug **1131168** for a regression in FxCop's Phoenix based dataflow engine (and subsequently all FXCop dataflow rules) due to this incorrect metadata emit."}}