{"action":"created","issue":{"url":"https://api.github.com/repos/Arcoth/Constainer/issues/1","labels_url":"https://api.github.com/repos/Arcoth/Constainer/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Arcoth/Constainer/issues/1/comments","events_url":"https://api.github.com/repos/Arcoth/Constainer/issues/1/events","html_url":"https://github.com/Arcoth/Constainer/issues/1","id":103489669,"number":1,"title":"StableVector - access to temporary whose lifetime has ended","user":{"login":"Arcoth","id":3051413,"avatar_url":"https://avatars.githubusercontent.com/u/3051413?v=3","gravatar_id":"","url":"https://api.github.com/users/Arcoth","html_url":"https://github.com/Arcoth","followers_url":"https://api.github.com/users/Arcoth/followers","following_url":"https://api.github.com/users/Arcoth/following{/other_user}","gists_url":"https://api.github.com/users/Arcoth/gists{/gist_id}","starred_url":"https://api.github.com/users/Arcoth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arcoth/subscriptions","organizations_url":"https://api.github.com/users/Arcoth/orgs","repos_url":"https://api.github.com/users/Arcoth/repos","events_url":"https://api.github.com/users/Arcoth/events{/privacy}","received_events_url":"https://api.github.com/users/Arcoth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"Arcoth","id":3051413,"avatar_url":"https://avatars.githubusercontent.com/u/3051413?v=3","gravatar_id":"","url":"https://api.github.com/users/Arcoth","html_url":"https://github.com/Arcoth","followers_url":"https://api.github.com/users/Arcoth/followers","following_url":"https://api.github.com/users/Arcoth/following{/other_user}","gists_url":"https://api.github.com/users/Arcoth/gists{/gist_id}","starred_url":"https://api.github.com/users/Arcoth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arcoth/subscriptions","organizations_url":"https://api.github.com/users/Arcoth/orgs","repos_url":"https://api.github.com/users/Arcoth/repos","events_url":"https://api.github.com/users/Arcoth/events{/privacy}","received_events_url":"https://api.github.com/users/Arcoth/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-08-27T11:40:16Z","updated_at":"2015-08-28T10:12:26Z","closed_at":null,"body":"This issue occurs in e.g. the following scenario:\r\n\r\n``` c++\r\nconstexpr auto f() {return StableVector<int, ChunkPool<int, 10>>{1};}\r\nstatic_assert( f()[0] );\r\n```\r\n\r\nClang's error message:\r\n\r\n```\r\n….cxx:4:16: error: static_assert expression is not an integral constant expression\r\nstatic_assert( f()[0] );\r\n               ^~~~~~\r\n….cxx:4:16: note: read of temporary whose lifetime has ended\r\n….cxx:3:28: note: temporary created here\r\nconstexpr auto f() {return StableVector<int, ChunkPool<int, 10>>{1};}\r\n                           ^\r\n```\r\n\r\nWhether this is a bug or not isn't entirely clear, but the former is probably the case, as e.g. AddressSanitizer doesn't show anything."},"comment":{"url":"https://api.github.com/repos/Arcoth/Constainer/issues/comments/135727089","html_url":"https://github.com/Arcoth/Constainer/issues/1#issuecomment-135727089","issue_url":"https://api.github.com/repos/Arcoth/Constainer/issues/1","id":135727089,"user":{"login":"Arcoth","id":3051413,"avatar_url":"https://avatars.githubusercontent.com/u/3051413?v=3","gravatar_id":"","url":"https://api.github.com/users/Arcoth","html_url":"https://github.com/Arcoth","followers_url":"https://api.github.com/users/Arcoth/followers","following_url":"https://api.github.com/users/Arcoth/following{/other_user}","gists_url":"https://api.github.com/users/Arcoth/gists{/gist_id}","starred_url":"https://api.github.com/users/Arcoth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arcoth/subscriptions","organizations_url":"https://api.github.com/users/Arcoth/orgs","repos_url":"https://api.github.com/users/Arcoth/repos","events_url":"https://api.github.com/users/Arcoth/events{/privacy}","received_events_url":"https://api.github.com/users/Arcoth/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T10:12:25Z","updated_at":"2015-08-28T10:12:25Z","body":"Fixed in trunk 246282."}}