{"action":"created","issue":{"url":"https://api.github.com/repos/Alexpux/MINGW-packages/issues/722","labels_url":"https://api.github.com/repos/Alexpux/MINGW-packages/issues/722/labels{/name}","comments_url":"https://api.github.com/repos/Alexpux/MINGW-packages/issues/722/comments","events_url":"https://api.github.com/repos/Alexpux/MINGW-packages/issues/722/events","html_url":"https://github.com/Alexpux/MINGW-packages/issues/722","id":98638002,"number":722,"title":"clang++ strtold() segmentation fault","user":{"login":"vpetrigo","id":5689770,"avatar_url":"https://avatars.githubusercontent.com/u/5689770?v=3","gravatar_id":"","url":"https://api.github.com/users/vpetrigo","html_url":"https://github.com/vpetrigo","followers_url":"https://api.github.com/users/vpetrigo/followers","following_url":"https://api.github.com/users/vpetrigo/following{/other_user}","gists_url":"https://api.github.com/users/vpetrigo/gists{/gist_id}","starred_url":"https://api.github.com/users/vpetrigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpetrigo/subscriptions","organizations_url":"https://api.github.com/users/vpetrigo/orgs","repos_url":"https://api.github.com/users/vpetrigo/repos","events_url":"https://api.github.com/users/vpetrigo/events{/privacy}","received_events_url":"https://api.github.com/users/vpetrigo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-08-02T21:13:38Z","updated_at":"2015-09-03T05:39:23Z","closed_at":"2015-08-14T19:10:58Z","body":"Hello,\r\n\r\nI have met an issue with segmentation fault in program which was built by clang.\r\nHere is the code which represents the bug:\r\n```cpp\r\n#include <iostream>                         \r\n#include <string>                           \r\n                                            \r\nint main() {                                \r\n    char *ptr;                              \r\n    const char *s = \"1.23\";                         \r\n    long double ld = std::strtold(s, &ptr);                                           \r\n    std::cout << ld;\r\n                                              \r\n    return 0;                               \r\n}                                                                       \r\n```\r\nWith the current `g++ (5.2.0)` there is no problem, but clang has. \r\nI use clang from mingw64 repo:\r\n```\r\nclang version 3.6.2 (tags/RELEASE_362/final)\r\nTarget: x86_64-w64-windows-gnu\r\nThread model: posix\r\n```\r\n\r\nI also tried to build the latest available clang , but it has the same effect:\r\n```\r\nclang version 3.8.0 (trunk)\r\nTarget: x86_64-w64-windows-gnu\r\nThread model: posix\r\n```"},"comment":{"url":"https://api.github.com/repos/Alexpux/MINGW-packages/issues/comments/137340324","html_url":"https://github.com/Alexpux/MINGW-packages/issues/722#issuecomment-137340324","issue_url":"https://api.github.com/repos/Alexpux/MINGW-packages/issues/722","id":137340324,"user":{"login":"vpetrigo","id":5689770,"avatar_url":"https://avatars.githubusercontent.com/u/5689770?v=3","gravatar_id":"","url":"https://api.github.com/users/vpetrigo","html_url":"https://github.com/vpetrigo","followers_url":"https://api.github.com/users/vpetrigo/followers","following_url":"https://api.github.com/users/vpetrigo/following{/other_user}","gists_url":"https://api.github.com/users/vpetrigo/gists{/gist_id}","starred_url":"https://api.github.com/users/vpetrigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpetrigo/subscriptions","organizations_url":"https://api.github.com/users/vpetrigo/orgs","repos_url":"https://api.github.com/users/vpetrigo/repos","events_url":"https://api.github.com/users/vpetrigo/events{/privacy}","received_events_url":"https://api.github.com/users/vpetrigo/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T05:39:23Z","updated_at":"2015-09-03T05:39:23Z","body":"@martell , thank you a lot!\r\nAs I understand the last clang in the msys2 repository does not use this fix, does it? Because code from the first message still throws **Segmentation fault**."}}