{"action":"opened","issue":{"url":"https://api.github.com/repos/nickg/nvc/issues/269","labels_url":"https://api.github.com/repos/nickg/nvc/issues/269/labels{/name}","comments_url":"https://api.github.com/repos/nickg/nvc/issues/269/comments","events_url":"https://api.github.com/repos/nickg/nvc/issues/269/events","html_url":"https://github.com/nickg/nvc/issues/269","id":119417425,"number":269,"title":"nonsense error while analyzing contraint type","user":{"login":"postoroniy","id":6311402,"avatar_url":"https://avatars.githubusercontent.com/u/6311402?v=3","gravatar_id":"","url":"https://api.github.com/users/postoroniy","html_url":"https://github.com/postoroniy","followers_url":"https://api.github.com/users/postoroniy/followers","following_url":"https://api.github.com/users/postoroniy/following{/other_user}","gists_url":"https://api.github.com/users/postoroniy/gists{/gist_id}","starred_url":"https://api.github.com/users/postoroniy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postoroniy/subscriptions","organizations_url":"https://api.github.com/users/postoroniy/orgs","repos_url":"https://api.github.com/users/postoroniy/repos","events_url":"https://api.github.com/users/postoroniy/events{/privacy}","received_events_url":"https://api.github.com/users/postoroniy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-30T04:37:31Z","updated_at":"2015-11-30T04:37:31Z","closed_at":null,"body":"I am getting \r\n** Error: right index 0 violates constraint STD.STANDARD.POSITIVE\r\non trivial stuff like below\r\n```vhdl\r\n    function func1(w1,w2:integer) return integer is\r\n        variable xdiff   : signed(CWIDTH downto 0):=(others=>'0');\r\n...\r\n    begin\r\n...\r\n        return result;\r\n    end func1;\r\n```\r\n and no error when\r\n```vhdl\r\n    function func1(w1,w2:integer) return integer is\r\n        variable xdiff   : signed(CWIDTH-0 downto 0):=(others=>'0');\r\n...\r\n    begin\r\n...\r\n        return result;\r\n    end func1;\r\n```\r\n"}}