{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5068","repository_url":"https://api.github.com/repos/HaxeFoundation/haxe","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5068/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5068/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5068/events","html_url":"https://github.com/HaxeFoundation/haxe/issues/5068","id":146431323,"number":5068,"title":"[cpp] instance function comparison is broken in release builds","user":{"login":"Gama11","id":2620907,"avatar_url":"https://avatars.githubusercontent.com/u/2620907?v=3","gravatar_id":"","url":"https://api.github.com/users/Gama11","html_url":"https://github.com/Gama11","followers_url":"https://api.github.com/users/Gama11/followers","following_url":"https://api.github.com/users/Gama11/following{/other_user}","gists_url":"https://api.github.com/users/Gama11/gists{/gist_id}","starred_url":"https://api.github.com/users/Gama11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gama11/subscriptions","organizations_url":"https://api.github.com/users/Gama11/orgs","repos_url":"https://api.github.com/users/Gama11/repos","events_url":"https://api.github.com/users/Gama11/events{/privacy}","received_events_url":"https://api.github.com/users/Gama11/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"hughsando","id":1665494,"avatar_url":"https://avatars.githubusercontent.com/u/1665494?v=3","gravatar_id":"","url":"https://api.github.com/users/hughsando","html_url":"https://github.com/hughsando","followers_url":"https://api.github.com/users/hughsando/followers","following_url":"https://api.github.com/users/hughsando/following{/other_user}","gists_url":"https://api.github.com/users/hughsando/gists{/gist_id}","starred_url":"https://api.github.com/users/hughsando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hughsando/subscriptions","organizations_url":"https://api.github.com/users/hughsando/orgs","repos_url":"https://api.github.com/users/hughsando/repos","events_url":"https://api.github.com/users/hughsando/events{/privacy}","received_events_url":"https://api.github.com/users/hughsando/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2016-04-06T20:52:14Z","updated_at":"2016-04-07T08:35:35Z","closed_at":null,"body":"```haxe\r\nclass Main {\r\n\tpublic static function main() {\r\n\t\tnew Main();\r\n\t}\t\r\n\t\r\n\tpublic function new() {\r\n\t\tvar a = [foo1, foo2];\r\n\t\ttrace(a.indexOf(foo1));\r\n\t\ttrace(a.indexOf(foo2));\r\n\t}\r\n\t\r\n\tfunction foo1() {}\r\n\tfunction foo2() {}\r\n}\r\n```\r\n\r\nThis traces:\r\n- `0, 1` on Haxe 3.2.1 as expected (regardless of `-debug`)\r\n- `0, 1` on dev as expected (with `-debug`)\r\n- `0, 0` on dev without `-debug` **(!)**"},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/comments/206760151","html_url":"https://github.com/HaxeFoundation/haxe/issues/5068#issuecomment-206760151","issue_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5068","id":206760151,"user":{"login":"ncannasse","id":1022912,"avatar_url":"https://avatars.githubusercontent.com/u/1022912?v=3","gravatar_id":"","url":"https://api.github.com/users/ncannasse","html_url":"https://github.com/ncannasse","followers_url":"https://api.github.com/users/ncannasse/followers","following_url":"https://api.github.com/users/ncannasse/following{/other_user}","gists_url":"https://api.github.com/users/ncannasse/gists{/gist_id}","starred_url":"https://api.github.com/users/ncannasse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncannasse/subscriptions","organizations_url":"https://api.github.com/users/ncannasse/orgs","repos_url":"https://api.github.com/users/ncannasse/repos","events_url":"https://api.github.com/users/ncannasse/events{/privacy}","received_events_url":"https://api.github.com/users/ncannasse/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T08:35:35Z","updated_at":"2016-04-07T08:35:35Z","body":"That's a hxcpp error right ? @hughsando the result of method comparison should not change between debug/release."}}