{"action":"opened","issue":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/6016","repository_url":"https://api.github.com/repos/nim-lang/Nim","labels_url":"https://api.github.com/repos/nim-lang/Nim/issues/6016/labels{/name}","comments_url":"https://api.github.com/repos/nim-lang/Nim/issues/6016/comments","events_url":"https://api.github.com/repos/nim-lang/Nim/issues/6016/events","html_url":"https://github.com/nim-lang/Nim/issues/6016","id":238330379,"number":6016,"title":"union type compile error..","user":{"login":"ga1axy","id":2826676,"avatar_url":"https://avatars2.githubusercontent.com/u/2826676?v=3","gravatar_id":"","url":"https://api.github.com/users/ga1axy","html_url":"https://github.com/ga1axy","followers_url":"https://api.github.com/users/ga1axy/followers","following_url":"https://api.github.com/users/ga1axy/following{/other_user}","gists_url":"https://api.github.com/users/ga1axy/gists{/gist_id}","starred_url":"https://api.github.com/users/ga1axy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga1axy/subscriptions","organizations_url":"https://api.github.com/users/ga1axy/orgs","repos_url":"https://api.github.com/users/ga1axy/repos","events_url":"https://api.github.com/users/ga1axy/events{/privacy}","received_events_url":"https://api.github.com/users/ga1axy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-24T17:24:19Z","updated_at":"2017-06-24T17:24:19Z","closed_at":null,"body":"`\r\ntype\r\n  UNION {.final, union, pure.} = object\r\n    field1: int\r\n    field2: uint64\r\n\r\n  STRUCT  = UNION\r\n\r\n  PSTRUCT = ptr STRUCT\r\n\r\nproc pstruct(u: PSTRUCT) =\r\n  discard\r\n`\r\n\r\n`\r\nC:\\nim \r\n$ nim c union.nim\r\nHint: used config file 'C:\\nim-0.17.0\\config\\nim.cfg' [Conf]\r\nHint: system [Processing]\r\nHint: union [Processing]\r\nunion.nim(10, 6) Hint: 'union.pstruct(u: PSTRUCT)' is declared but not used [XDeclaredButNotUsed]\r\nCC: union\r\nC:\\nim\\nimcache\\union.c:14:1: error: use of 'UNION_odwgP39bW9cZyWFv3LNpTGzA' with tag type that does not match previous declaration\r\nunion  UNION_odwgP39bW9cZyWFv3LNpTGzA  {\r\n^~~~~\r\nstruct\r\nC:\\nim\\nimcache\\union.c:13:16: note: previous use is here\r\ntypedef struct UNION_odwgP39bW9cZyWFv3LNpTGzA UNION_odwgP39bW9cZyWFv3LNpTGzA;\r\n               ^\r\n1 error generated.\r\nHint:  [Link]\r\nclang.exe: error: no such file or directory: 'C:\\nim\\nimcache\\union.o'\r\nError: execution of an external program failed: 'clang.exe   -o C:\\nim\\union.exe  C:\\nim\\nimcache\\union.o C:\\nim\\nimcache\\stdlib_system.o    '\r\n\r\nC:\\nim \r\n$\r\nC:\\nim \r\n$\r\n`"}}
{"actor":{"display_login":"ga1axy"}}