{"comment":{"url":"https://api.github.com/repos/llvm-mirror/clang/comments/19257484","html_url":"https://github.com/llvm-mirror/clang/commit/19893088e35298e064d60896cda2be8ce788e1a1#commitcomment-19257484","id":19257484,"user":{"login":"crtrott","id":9490481,"avatar_url":"https://avatars.githubusercontent.com/u/9490481?v=3","gravatar_id":"","url":"https://api.github.com/users/crtrott","html_url":"https://github.com/crtrott","followers_url":"https://api.github.com/users/crtrott/followers","following_url":"https://api.github.com/users/crtrott/following{/other_user}","gists_url":"https://api.github.com/users/crtrott/gists{/gist_id}","starred_url":"https://api.github.com/users/crtrott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crtrott/subscriptions","organizations_url":"https://api.github.com/users/crtrott/orgs","repos_url":"https://api.github.com/users/crtrott/repos","events_url":"https://api.github.com/users/crtrott/events{/privacy}","received_events_url":"https://api.github.com/users/crtrott/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":null,"commit_id":"19893088e35298e064d60896cda2be8ce788e1a1","created_at":"2016-10-02T01:53:17Z","updated_at":"2016-10-02T01:53:17Z","body":"The following code I believe is legal, and the correct way to create a variable which references the dynamically requested shared memory. With the extern I get an error, without it I also get one:\r\n\r\nerror: definition of variable with array type needs an explicit size or an initializer\r\n\r\n```C++\r\ninline\r\n__device__\r\nT * kokkos_impl_cuda_shared_memory()\r\n{\r\n  extern __shared__ Kokkos::CudaSpace::size_type sh[]; return (T*) sh ;\r\n}\r\n```"}}
{"actor":{"display_login":"crtrott"}}