{"action":"created","issue":{"url":"https://api.github.com/repos/clash-lang/clash-compiler/issues/109","labels_url":"https://api.github.com/repos/clash-lang/clash-compiler/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/clash-lang/clash-compiler/issues/109/comments","events_url":"https://api.github.com/repos/clash-lang/clash-compiler/issues/109/events","html_url":"https://github.com/clash-lang/clash-compiler/issues/109","id":125455212,"number":109,"title":"Exception: CLaSH.Netlist(285): Unknown function: a3_227","user":{"login":"ggreif","id":1312006,"avatar_url":"https://avatars.githubusercontent.com/u/1312006?v=3","gravatar_id":"","url":"https://api.github.com/users/ggreif","html_url":"https://github.com/ggreif","followers_url":"https://api.github.com/users/ggreif/followers","following_url":"https://api.github.com/users/ggreif/following{/other_user}","gists_url":"https://api.github.com/users/ggreif/gists{/gist_id}","starred_url":"https://api.github.com/users/ggreif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggreif/subscriptions","organizations_url":"https://api.github.com/users/ggreif/orgs","repos_url":"https://api.github.com/users/ggreif/repos","events_url":"https://api.github.com/users/ggreif/events{/privacy}","received_events_url":"https://api.github.com/users/ggreif/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/clash-lang/clash-compiler/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-07T18:19:28Z","updated_at":"2016-01-07T22:01:40Z","closed_at":null,"body":"While compiling my CAM design I found two CLaSH bugs. This is number one. I get\r\n```\r\nLoading dependencies took 0.449427s\r\nApplied 268 transformations\r\nNormalisation took 0.819746s\r\n*** Exception: CLaSH.Netlist(285): Unknown function: a3_227\r\n```\r\nwhen compiling the attached file.\r\n\r\nWriting the local function `both` with a catch-all pattern removes the problem.\r\n[CAM.txt](https://github.com/clash-lang/clash-compiler/files/81564/CAM.txt)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/clash-lang/clash-compiler/issues/comments/169820159","html_url":"https://github.com/clash-lang/clash-compiler/issues/109#issuecomment-169820159","issue_url":"https://api.github.com/repos/clash-lang/clash-compiler/issues/109","id":169820159,"user":{"login":"ggreif","id":1312006,"avatar_url":"https://avatars.githubusercontent.com/u/1312006?v=3","gravatar_id":"","url":"https://api.github.com/users/ggreif","html_url":"https://github.com/ggreif","followers_url":"https://api.github.com/users/ggreif/followers","following_url":"https://api.github.com/users/ggreif/following{/other_user}","gists_url":"https://api.github.com/users/ggreif/gists{/gist_id}","starred_url":"https://api.github.com/users/ggreif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggreif/subscriptions","organizations_url":"https://api.github.com/users/ggreif/orgs","repos_url":"https://api.github.com/users/ggreif/repos","events_url":"https://api.github.com/users/ggreif/events{/privacy}","received_events_url":"https://api.github.com/users/ggreif/received_events","type":"User","site_admin":false},"created_at":"2016-01-07T22:01:40Z","updated_at":"2016-01-07T22:01:40Z","body":"Funny thing, it works! Just uncomment that line and it even generates VHDL. The power of defunctionalisation?"}}