{"action":"closed","issue":{"url":"https://api.github.com/repos/cc65/cc65/issues/267","repository_url":"https://api.github.com/repos/cc65/cc65","labels_url":"https://api.github.com/repos/cc65/cc65/issues/267/labels{/name}","comments_url":"https://api.github.com/repos/cc65/cc65/issues/267/comments","events_url":"https://api.github.com/repos/cc65/cc65/issues/267/events","html_url":"https://github.com/cc65/cc65/issues/267","id":130459950,"number":267,"title":"Loop nesting bug, inner continue causes outer continue","user":{"login":"clbr","id":790333,"avatar_url":"https://avatars.githubusercontent.com/u/790333?v=3","gravatar_id":"","url":"https://api.github.com/users/clbr","html_url":"https://github.com/clbr","followers_url":"https://api.github.com/users/clbr/followers","following_url":"https://api.github.com/users/clbr/following{/other_user}","gists_url":"https://api.github.com/users/clbr/gists{/gist_id}","starred_url":"https://api.github.com/users/clbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clbr/subscriptions","organizations_url":"https://api.github.com/users/clbr/orgs","repos_url":"https://api.github.com/users/clbr/repos","events_url":"https://api.github.com/users/clbr/events{/privacy}","received_events_url":"https://api.github.com/users/clbr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-01T19:35:46Z","updated_at":"2016-02-02T16:26:33Z","closed_at":"2016-02-02T16:26:33Z","body":"I have a program of this type:\r\n\r\n```\r\nwhile (1) {\r\n    // game loop\r\n    for (i = 0; i < 40; ++i) {\r\n        if (something)\r\n            continue;\r\n        if (u16 var - another u16 var > 128)\r\n            continue;\r\n    }\r\n}\r\n```\r\n\r\nThe second continue randomly causes a continue of the outer while loop. Everything after it doesn't happen, if I comment out the second check, everything works fine.\r\n\r\nI have yet to succeed in reproducing it in a simpler sample, but when I do, I'll post one. It's not a stack overflow, at least according to cc65's --check-stack option.\r\n\r\nIt happens both with and without -O."}}