{"action":"closed","issue":{"url":"https://api.github.com/repos/Alexpux/MINGW-packages/issues/2463","repository_url":"https://api.github.com/repos/Alexpux/MINGW-packages","labels_url":"https://api.github.com/repos/Alexpux/MINGW-packages/issues/2463/labels{/name}","comments_url":"https://api.github.com/repos/Alexpux/MINGW-packages/issues/2463/comments","events_url":"https://api.github.com/repos/Alexpux/MINGW-packages/issues/2463/events","html_url":"https://github.com/Alexpux/MINGW-packages/issues/2463","id":228541312,"number":2463,"title":"GCC fails if <windows.h> is included before <string>","user":{"login":"Ede123","id":904570,"avatar_url":"https://avatars3.githubusercontent.com/u/904570?v=3","gravatar_id":"","url":"https://api.github.com/users/Ede123","html_url":"https://github.com/Ede123","followers_url":"https://api.github.com/users/Ede123/followers","following_url":"https://api.github.com/users/Ede123/following{/other_user}","gists_url":"https://api.github.com/users/Ede123/gists{/gist_id}","starred_url":"https://api.github.com/users/Ede123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ede123/subscriptions","organizations_url":"https://api.github.com/users/Ede123/orgs","repos_url":"https://api.github.com/users/Ede123/repos","events_url":"https://api.github.com/users/Ede123/events{/privacy}","received_events_url":"https://api.github.com/users/Ede123/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-05-14T13:19:25Z","updated_at":"2017-05-15T22:45:41Z","closed_at":"2017-05-15T22:45:40Z","body":"Is this a new bug introduced between `mingw-w64-x86_64-gcc-6.2.0-2` and `mingw-w64-x86_64-gcc-6.3.0-2` or am I just doing something stupid?\r\n\r\nWhen compiling the following\r\n```\r\n#include<windows.h>\r\n#include<string>\r\n\r\nint main(int argc, char *argv[]){\r\n   return 0;\r\n}\r\n```\r\n\r\nI get very ugly errors from gcc (see attached).\r\nIf I change the inclusion order of `#include<windows.h>` and `#include<string>` the problem is solved.\r\n\r\n[error2.txt](https://github.com/Alexpux/MINGW-packages/files/999381/error2.txt)\r\n\r\n"}}
{"actor":{"display_login":"Ede123"}}