{"action":"closed","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/11289","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/11289/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/11289/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/11289/events","html_url":"https://github.com/JuliaLang/julia/issues/11289","id":76864902,"number":11289,"title":"Constructing a SubArray with an empty index vector fails","user":{"login":"simonster","id":470884,"avatar_url":"https://avatars.githubusercontent.com/u/470884?v=3","gravatar_id":"","url":"https://api.github.com/users/simonster","html_url":"https://github.com/simonster","followers_url":"https://api.github.com/users/simonster/followers","following_url":"https://api.github.com/users/simonster/following{/other_user}","gists_url":"https://api.github.com/users/simonster/gists{/gist_id}","starred_url":"https://api.github.com/users/simonster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonster/subscriptions","organizations_url":"https://api.github.com/users/simonster/orgs","repos_url":"https://api.github.com/users/simonster/repos","events_url":"https://api.github.com/users/simonster/events{/privacy}","received_events_url":"https://api.github.com/users/simonster/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JuliaLang/julia/labels/bug","name":"bug","color":"e10c02"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-15T21:33:41Z","updated_at":"2015-05-16T13:01:21Z","closed_at":"2015-05-16T13:01:21Z","body":"```julia\r\njulia> x = randn(5, 5)\r\n5x5 Array{Float64,2}:\r\n -1.54875    0.736746   0.288464   -0.575672  -0.327747\r\n -1.53463    1.51122    0.0859705  -0.528929  -0.139893\r\n -0.382731  -0.244694  -1.55047     0.290429   0.377545\r\n -0.30907    0.840815   1.58206    -0.546569  -0.930888\r\n -0.76166   -0.736894  -0.971411    0.565943  -0.736462\r\n\r\njulia> sub(x, Int[], :)\r\nERROR: BoundsError: attempt to access 0-element Array{Int64,1}\r\n  at index [1]\r\n in sub at ./subarray.jl:85\r\n```"}}