{"action":"opened","number":4991,"pull_request":{"url":"https://api.github.com/repos/D-Programming-Language/dmd/pulls/4991","id":43711468,"html_url":"https://github.com/D-Programming-Language/dmd/pull/4991","diff_url":"https://github.com/D-Programming-Language/dmd/pull/4991.diff","patch_url":"https://github.com/D-Programming-Language/dmd/pull/4991.patch","issue_url":"https://api.github.com/repos/D-Programming-Language/dmd/issues/4991","number":4991,"state":"open","locked":false,"title":"Don't use `foreach` if the loop body modifies the iteration variable","user":{"login":"schuetzm","id":560664,"avatar_url":"https://avatars.githubusercontent.com/u/560664?v=3","gravatar_id":"","url":"https://api.github.com/users/schuetzm","html_url":"https://github.com/schuetzm","followers_url":"https://api.github.com/users/schuetzm/followers","following_url":"https://api.github.com/users/schuetzm/following{/other_user}","gists_url":"https://api.github.com/users/schuetzm/gists{/gist_id}","starred_url":"https://api.github.com/users/schuetzm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schuetzm/subscriptions","organizations_url":"https://api.github.com/users/schuetzm/orgs","repos_url":"https://api.github.com/users/schuetzm/repos","events_url":"https://api.github.com/users/schuetzm/events{/privacy}","received_events_url":"https://api.github.com/users/schuetzm/received_events","type":"User","site_admin":false},"body":"This fixes a segfault in compiling vibe.d.","created_at":"2015-08-30T10:59:28Z","updated_at":"2015-08-30T10:59:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/D-Programming-Language/dmd/pulls/4991/commits","review_comments_url":"https://api.github.com/repos/D-Programming-Language/dmd/pulls/4991/comments","review_comment_url":"https://api.github.com/repos/D-Programming-Language/dmd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/D-Programming-Language/dmd/issues/4991/comments","statuses_url":"https://api.github.com/repos/D-Programming-Language/dmd/statuses/9739d58f5af8b4a5a7e0ff9e4115c9ca16452d14","head":{"label":"schuetzm:fix-foreach-modifying-index","ref":"fix-foreach-modifying-index","sha":"9739d58f5af8b4a5a7e0ff9e4115c9ca16452d14","user":{"login":"schuetzm","id":560664,"avatar_url":"https://avatars.githubusercontent.com/u/560664?v=3","gravatar_id":"","url":"https://api.github.com/users/schuetzm","html_url":"https://github.com/schuetzm","followers_url":"https://api.github.com/users/schuetzm/followers","following_url":"https://api.github.com/users/schuetzm/following{/other_user}","gists_url":"https://api.github.com/users/schuetzm/gists{/gist_id}","starred_url":"https://api.github.com/users/schuetzm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schuetzm/subscriptions","organizations_url":"https://api.github.com/users/schuetzm/orgs","repos_url":"https://api.github.com/users/schuetzm/repos","events_url":"https://api.github.com/users/schuetzm/events{/privacy}","received_events_url":"https://api.github.com/users/schuetzm/received_events","type":"User","site_admin":false},"repo":{"id":16440159,"name":"dmd","full_name":"schuetzm/dmd","owner":{"login":"schuetzm","id":560664,"avatar_url":"https://avatars.githubusercontent.com/u/560664?v=3","gravatar_id":"","url":"https://api.github.com/users/schuetzm","html_url":"https://github.com/schuetzm","followers_url":"https://api.github.com/users/schuetzm/followers","following_url":"https://api.github.com/users/schuetzm/following{/other_user}","gists_url":"https://api.github.com/users/schuetzm/gists{/gist_id}","starred_url":"https://api.github.com/users/schuetzm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schuetzm/subscriptions","organizations_url":"https://api.github.com/users/schuetzm/orgs","repos_url":"https://api.github.com/users/schuetzm/repos","events_url":"https://api.github.com/users/schuetzm/events{/privacy}","received_events_url":"https://api.github.com/users/schuetzm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/schuetzm/dmd","description":"dmd D Programming Language compiler","fork":true,"url":"https://api.github.com/repos/schuetzm/dmd","forks_url":"https://api.github.com/repos/schuetzm/dmd/forks","keys_url":"https://api.github.com/repos/schuetzm/dmd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/schuetzm/dmd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/schuetzm/dmd/teams","hooks_url":"https://api.github.com/repos/schuetzm/dmd/hooks","issue_events_url":"https://api.github.com/repos/schuetzm/dmd/issues/events{/number}","events_url":"https://api.github.com/repos/schuetzm/dmd/events","assignees_url":"https://api.github.com/repos/schuetzm/dmd/assignees{/user}","branches_url":"https://api.github.com/repos/schuetzm/dmd/branches{/branch}","tags_url":"https://api.github.com/repos/schuetzm/dmd/tags","blobs_url":"https://api.github.com/repos/schuetzm/dmd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/schuetzm/dmd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/schuetzm/dmd/git/refs{/sha}","trees_url":"https://api.github.com/repos/schuetzm/dmd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/schuetzm/dmd/statuses/{sha}","languages_url":"https://api.github.com/repos/schuetzm/dmd/languages","stargazers_url":"https://api.github.com/repos/schuetzm/dmd/stargazers","contributors_url":"https://api.github.com/repos/schuetzm/dmd/contributors","subscribers_url":"https://api.github.com/repos/schuetzm/dmd/subscribers","subscription_url":"https://api.github.com/repos/schuetzm/dmd/subscription","commits_url":"https://api.github.com/repos/schuetzm/dmd/commits{/sha}","git_commits_url":"https://api.github.com/repos/schuetzm/dmd/git/commits{/sha}","comments_url":"https://api.github.com/repos/schuetzm/dmd/comments{/number}","issue_comment_url":"https://api.github.com/repos/schuetzm/dmd/issues/comments{/number}","contents_url":"https://api.github.com/repos/schuetzm/dmd/contents/{+path}","compare_url":"https://api.github.com/repos/schuetzm/dmd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/schuetzm/dmd/merges","archive_url":"https://api.github.com/repos/schuetzm/dmd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/schuetzm/dmd/downloads","issues_url":"https://api.github.com/repos/schuetzm/dmd/issues{/number}","pulls_url":"https://api.github.com/repos/schuetzm/dmd/pulls{/number}","milestones_url":"https://api.github.com/repos/schuetzm/dmd/milestones{/number}","notifications_url":"https://api.github.com/repos/schuetzm/dmd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/schuetzm/dmd/labels{/name}","releases_url":"https://api.github.com/repos/schuetzm/dmd/releases{/id}","created_at":"2014-02-01T18:52:10Z","updated_at":"2014-05-18T16:15:09Z","pushed_at":"2015-08-30T10:58:50Z","git_url":"git://github.com/schuetzm/dmd.git","ssh_url":"git@github.com:schuetzm/dmd.git","clone_url":"https://github.com/schuetzm/dmd.git","svn_url":"https://github.com/schuetzm/dmd","homepage":"dlang.org","size":39186,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"D-Programming-Language:master","ref":"master","sha":"f18fe224da8357ec28c9693215c73830830e2965","user":{"login":"D-Programming-Language","id":565913,"avatar_url":"https://avatars.githubusercontent.com/u/565913?v=3","gravatar_id":"","url":"https://api.github.com/users/D-Programming-Language","html_url":"https://github.com/D-Programming-Language","followers_url":"https://api.github.com/users/D-Programming-Language/followers","following_url":"https://api.github.com/users/D-Programming-Language/following{/other_user}","gists_url":"https://api.github.com/users/D-Programming-Language/gists{/gist_id}","starred_url":"https://api.github.com/users/D-Programming-Language/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/D-Programming-Language/subscriptions","organizations_url":"https://api.github.com/users/D-Programming-Language/orgs","repos_url":"https://api.github.com/users/D-Programming-Language/repos","events_url":"https://api.github.com/users/D-Programming-Language/events{/privacy}","received_events_url":"https://api.github.com/users/D-Programming-Language/received_events","type":"Organization","site_admin":false},"repo":{"id":1257070,"name":"dmd","full_name":"D-Programming-Language/dmd","owner":{"login":"D-Programming-Language","id":565913,"avatar_url":"https://avatars.githubusercontent.com/u/565913?v=3","gravatar_id":"","url":"https://api.github.com/users/D-Programming-Language","html_url":"https://github.com/D-Programming-Language","followers_url":"https://api.github.com/users/D-Programming-Language/followers","following_url":"https://api.github.com/users/D-Programming-Language/following{/other_user}","gists_url":"https://api.github.com/users/D-Programming-Language/gists{/gist_id}","starred_url":"https://api.github.com/users/D-Programming-Language/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/D-Programming-Language/subscriptions","organizations_url":"https://api.github.com/users/D-Programming-Language/orgs","repos_url":"https://api.github.com/users/D-Programming-Language/repos","events_url":"https://api.github.com/users/D-Programming-Language/events{/privacy}","received_events_url":"https://api.github.com/users/D-Programming-Language/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/D-Programming-Language/dmd","description":"dmd D Programming Language compiler","fork":false,"url":"https://api.github.com/repos/D-Programming-Language/dmd","forks_url":"https://api.github.com/repos/D-Programming-Language/dmd/forks","keys_url":"https://api.github.com/repos/D-Programming-Language/dmd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/D-Programming-Language/dmd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/D-Programming-Language/dmd/teams","hooks_url":"https://api.github.com/repos/D-Programming-Language/dmd/hooks","issue_events_url":"https://api.github.com/repos/D-Programming-Language/dmd/issues/events{/number}","events_url":"https://api.github.com/repos/D-Programming-Language/dmd/events","assignees_url":"https://api.github.com/repos/D-Programming-Language/dmd/assignees{/user}","branches_url":"https://api.github.com/repos/D-Programming-Language/dmd/branches{/branch}","tags_url":"https://api.github.com/repos/D-Programming-Language/dmd/tags","blobs_url":"https://api.github.com/repos/D-Programming-Language/dmd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/D-Programming-Language/dmd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/D-Programming-Language/dmd/git/refs{/sha}","trees_url":"https://api.github.com/repos/D-Programming-Language/dmd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/D-Programming-Language/dmd/statuses/{sha}","languages_url":"https://api.github.com/repos/D-Programming-Language/dmd/languages","stargazers_url":"https://api.github.com/repos/D-Programming-Language/dmd/stargazers","contributors_url":"https://api.github.com/repos/D-Programming-Language/dmd/contributors","subscribers_url":"https://api.github.com/repos/D-Programming-Language/dmd/subscribers","subscription_url":"https://api.github.com/repos/D-Programming-Language/dmd/subscription","commits_url":"https://api.github.com/repos/D-Programming-Language/dmd/commits{/sha}","git_commits_url":"https://api.github.com/repos/D-Programming-Language/dmd/git/commits{/sha}","comments_url":"https://api.github.com/repos/D-Programming-Language/dmd/comments{/number}","issue_comment_url":"https://api.github.com/repos/D-Programming-Language/dmd/issues/comments{/number}","contents_url":"https://api.github.com/repos/D-Programming-Language/dmd/contents/{+path}","compare_url":"https://api.github.com/repos/D-Programming-Language/dmd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/D-Programming-Language/dmd/merges","archive_url":"https://api.github.com/repos/D-Programming-Language/dmd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/D-Programming-Language/dmd/downloads","issues_url":"https://api.github.com/repos/D-Programming-Language/dmd/issues{/number}","pulls_url":"https://api.github.com/repos/D-Programming-Language/dmd/pulls{/number}","milestones_url":"https://api.github.com/repos/D-Programming-Language/dmd/milestones{/number}","notifications_url":"https://api.github.com/repos/D-Programming-Language/dmd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/D-Programming-Language/dmd/labels{/name}","releases_url":"https://api.github.com/repos/D-Programming-Language/dmd/releases{/id}","created_at":"2011-01-15T06:53:53Z","updated_at":"2015-08-29T17:59:27Z","pushed_at":"2015-08-30T10:33:50Z","git_url":"git://github.com/D-Programming-Language/dmd.git","ssh_url":"git@github.com:D-Programming-Language/dmd.git","clone_url":"https://github.com/D-Programming-Language/dmd.git","svn_url":"https://github.com/D-Programming-Language/dmd","homepage":"dlang.org","size":104291,"stargazers_count":1061,"watchers_count":1061,"language":"D","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":337,"mirror_url":null,"open_issues_count":147,"forks":337,"open_issues":147,"watchers":1061,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/D-Programming-Language/dmd/pulls/4991"},"html":{"href":"https://github.com/D-Programming-Language/dmd/pull/4991"},"issue":{"href":"https://api.github.com/repos/D-Programming-Language/dmd/issues/4991"},"comments":{"href":"https://api.github.com/repos/D-Programming-Language/dmd/issues/4991/comments"},"review_comments":{"href":"https://api.github.com/repos/D-Programming-Language/dmd/pulls/4991/comments"},"review_comment":{"href":"https://api.github.com/repos/D-Programming-Language/dmd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/D-Programming-Language/dmd/pulls/4991/commits"},"statuses":{"href":"https://api.github.com/repos/D-Programming-Language/dmd/statuses/9739d58f5af8b4a5a7e0ff9e4115c9ca16452d14"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}