{"action":"created","issue":{"url":"https://api.github.com/repos/D-Programming-Language/dmd/issues/4209","labels_url":"https://api.github.com/repos/D-Programming-Language/dmd/issues/4209/labels{/name}","comments_url":"https://api.github.com/repos/D-Programming-Language/dmd/issues/4209/comments","events_url":"https://api.github.com/repos/D-Programming-Language/dmd/issues/4209/events","html_url":"https://github.com/D-Programming-Language/dmd/pull/4209","id":51527662,"number":4209,"title":"Issue 13700 - Rejected valid conversion from slice to fixed size array","user":{"login":"9rnsr","id":254394,"avatar_url":"https://avatars.githubusercontent.com/u/254394?v=3","gravatar_id":"","url":"https://api.github.com/users/9rnsr","html_url":"https://github.com/9rnsr","followers_url":"https://api.github.com/users/9rnsr/followers","following_url":"https://api.github.com/users/9rnsr/following{/other_user}","gists_url":"https://api.github.com/users/9rnsr/gists{/gist_id}","starred_url":"https://api.github.com/users/9rnsr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/9rnsr/subscriptions","organizations_url":"https://api.github.com/users/9rnsr/orgs","repos_url":"https://api.github.com/users/9rnsr/repos","events_url":"https://api.github.com/users/9rnsr/events{/privacy}","received_events_url":"https://api.github.com/users/9rnsr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":27,"created_at":"2014-12-10T07:38:16Z","updated_at":"2015-01-04T07:18:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/D-Programming-Language/dmd/pulls/4209","html_url":"https://github.com/D-Programming-Language/dmd/pull/4209","diff_url":"https://github.com/D-Programming-Language/dmd/pull/4209.diff","patch_url":"https://github.com/D-Programming-Language/dmd/pull/4209.patch"},"body":"https://issues.dlang.org/show_bug.cgi?id=13700\r\n"},"comment":{"url":"https://api.github.com/repos/D-Programming-Language/dmd/issues/comments/68623915","html_url":"https://github.com/D-Programming-Language/dmd/pull/4209#issuecomment-68623915","issue_url":"https://api.github.com/repos/D-Programming-Language/dmd/issues/4209","id":68623915,"user":{"login":"yebblies","id":580100,"avatar_url":"https://avatars.githubusercontent.com/u/580100?v=3","gravatar_id":"","url":"https://api.github.com/users/yebblies","html_url":"https://github.com/yebblies","followers_url":"https://api.github.com/users/yebblies/followers","following_url":"https://api.github.com/users/yebblies/following{/other_user}","gists_url":"https://api.github.com/users/yebblies/gists{/gist_id}","starred_url":"https://api.github.com/users/yebblies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yebblies/subscriptions","organizations_url":"https://api.github.com/users/yebblies/orgs","repos_url":"https://api.github.com/users/yebblies/repos","events_url":"https://api.github.com/users/yebblies/events{/privacy}","received_events_url":"https://api.github.com/users/yebblies/received_events","type":"User","site_admin":false},"created_at":"2015-01-04T07:18:40Z","updated_at":"2015-01-04T07:18:40Z","body":"Hmm.  It does seem a little strange to allow getting the length of an invalid slice, but I can't think of why it would matter.  Any attempt to actually create the slice would still have the bounds checks.  I think it's reasonable to allow that test to pass.\r\n\r\nA similar case would be `0 * (1 / 0)`.  It can't be evaluated, but you can still potentially fold `0 * int` to `0` without needing to evaluate it.  This currently gives an error.\r\n\r\nAnother is `&*cast(int*)null`, which does compile and run just fine.\r\n\r\n> On the other hand, following code still fails to compile.\r\n> Because `optimize()` is not currently called on the enum initializer.\r\n\r\nI think that should work."}}