{"action":"opened","issue":{"url":"https://api.github.com/repos/nlohmann/json/issues/985","repository_url":"https://api.github.com/repos/nlohmann/json","labels_url":"https://api.github.com/repos/nlohmann/json/issues/985/labels{/name}","comments_url":"https://api.github.com/repos/nlohmann/json/issues/985/comments","events_url":"https://api.github.com/repos/nlohmann/json/issues/985/events","html_url":"https://github.com/nlohmann/json/issues/985","id":300524860,"number":985,"title":"Uniform initialization from another json object differs between gcc and clang.","user":{"login":"dsiroky","id":1227818,"avatar_url":"https://avatars2.githubusercontent.com/u/1227818?v=4","gravatar_id":"","url":"https://api.github.com/users/dsiroky","html_url":"https://github.com/dsiroky","followers_url":"https://api.github.com/users/dsiroky/followers","following_url":"https://api.github.com/users/dsiroky/following{/other_user}","gists_url":"https://api.github.com/users/dsiroky/gists{/gist_id}","starred_url":"https://api.github.com/users/dsiroky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsiroky/subscriptions","organizations_url":"https://api.github.com/users/dsiroky/orgs","repos_url":"https://api.github.com/users/dsiroky/repos","events_url":"https://api.github.com/users/dsiroky/events{/privacy}","received_events_url":"https://api.github.com/users/dsiroky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-27T07:49:43Z","updated_at":"2018-02-27T07:49:43Z","closed_at":null,"author_association":"NONE","body":"Construction behaves differently with gcc 7.2 and clang 5.\r\n\r\nCode to reproduce:\r\n```\r\nauto j1{nlohmann::json::parse(\"5\")};\r\nauto j2 = nlohmann::json::parse(\"5\");\r\nstd::cout << j1.is_array() << '\\n';\r\nstd::cout << j2.is_array() << '\\n';\r\n```\r\n\r\ngcc prints:\r\n1\r\n0\r\n\r\nclang prints:\r\n0\r\n0\r\n\r\nBoth are nlohmann::json instances however `j1` has an array wrapped around in gcc."}}
{"actor":{"display_login":"dsiroky"}}