{"action":"created","issue":{"url":"https://api.github.com/repos/visq/language-c/issues/39","repository_url":"https://api.github.com/repos/visq/language-c","labels_url":"https://api.github.com/repos/visq/language-c/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/visq/language-c/issues/39/comments","events_url":"https://api.github.com/repos/visq/language-c/issues/39/events","html_url":"https://github.com/visq/language-c/issues/39","id":262002463,"number":39,"title":"_Float128 is unrecognized","user":{"login":"jchia","id":446676,"avatar_url":"https://avatars0.githubusercontent.com/u/446676?v=4","gravatar_id":"","url":"https://api.github.com/users/jchia","html_url":"https://github.com/jchia","followers_url":"https://api.github.com/users/jchia/followers","following_url":"https://api.github.com/users/jchia/following{/other_user}","gists_url":"https://api.github.com/users/jchia/gists{/gist_id}","starred_url":"https://api.github.com/users/jchia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchia/subscriptions","organizations_url":"https://api.github.com/users/jchia/orgs","repos_url":"https://api.github.com/users/jchia/repos","events_url":"https://api.github.com/users/jchia/events{/privacy}","received_events_url":"https://api.github.com/users/jchia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-02T07:34:14Z","updated_at":"2017-10-02T07:39:14Z","closed_at":null,"author_association":"NONE","body":"Under gcc 7.2 on Arch Linux, parsing `/usr/include/stdlib.h` with the option `-D__STDC_WANT_IEC_60559_TYPES_EXT__` results in an error:\r\n```\r\n  Syntax error !\r\n  The symbol `strtof128' does not fit here.\r\n```\r\n\r\nThe offending code from `stdlib.h` is as follows:\r\n```\r\n#if __HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)\r\n/* Likewise for the '_Float128' format  */\r\nextern _Float128 strtof128 (const char *__restrict __nptr,\r\n                      char **__restrict __endptr)\r\n     __THROW __nonnull ((1));\r\n#endif\r\n```\r\n\r\nTo repro, take the `BasicUsage.hs` example and:\r\n- parse \"/usr/include/stdlib.h\" instead of \"test.c\"\r\n- use `parseCFile` options `[\"-D__STDC_WANT_IEC_60559_TYPES_EXT__\"]` instead of `[]`\r\n- run the example on the problematic platform (current Arch Linux should suffice, but I think another system with with gcc 7.2 and glibc 2.26 should also suffice)\r\n\r\nRelevant link about `_Float128`: https://gcc.gnu.org/onlinedocs/gcc-7.2.0/gcc/Floating-Types.html#Floating-Types"},"comment":{"url":"https://api.github.com/repos/visq/language-c/issues/comments/333461428","html_url":"https://github.com/visq/language-c/issues/39#issuecomment-333461428","issue_url":"https://api.github.com/repos/visq/language-c/issues/39","id":333461428,"user":{"login":"jchia","id":446676,"avatar_url":"https://avatars0.githubusercontent.com/u/446676?v=4","gravatar_id":"","url":"https://api.github.com/users/jchia","html_url":"https://github.com/jchia","followers_url":"https://api.github.com/users/jchia/followers","following_url":"https://api.github.com/users/jchia/following{/other_user}","gists_url":"https://api.github.com/users/jchia/gists{/gist_id}","starred_url":"https://api.github.com/users/jchia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchia/subscriptions","organizations_url":"https://api.github.com/users/jchia/orgs","repos_url":"https://api.github.com/users/jchia/repos","events_url":"https://api.github.com/users/jchia/events{/privacy}","received_events_url":"https://api.github.com/users/jchia/received_events","type":"User","site_admin":false},"created_at":"2017-10-02T07:39:14Z","updated_at":"2017-10-02T07:39:14Z","author_association":"NONE","body":"Is the correct fix to make `language-c` recognize `_Float128` like it already does `__float128` (#33)?\r\n\r\nI'm not clear why gcc has both `__float128` and `_Float128`. I only see that they exist."}}
{"actor":{"display_login":"jchia"}}