{"action":"created","issue":{"url":"https://api.github.com/repos/ldc-developers/ldc/issues/1154","labels_url":"https://api.github.com/repos/ldc-developers/ldc/issues/1154/labels{/name}","comments_url":"https://api.github.com/repos/ldc-developers/ldc/issues/1154/comments","events_url":"https://api.github.com/repos/ldc-developers/ldc/issues/1154/events","html_url":"https://github.com/ldc-developers/ldc/issues/1154","id":110859435,"number":1154,"title":"0.16.0-beta2: align() not respected","user":{"login":"redstar","id":827859,"avatar_url":"https://avatars.githubusercontent.com/u/827859?v=3","gravatar_id":"","url":"https://api.github.com/users/redstar","html_url":"https://github.com/redstar","followers_url":"https://api.github.com/users/redstar/followers","following_url":"https://api.github.com/users/redstar/following{/other_user}","gists_url":"https://api.github.com/users/redstar/gists{/gist_id}","starred_url":"https://api.github.com/users/redstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redstar/subscriptions","organizations_url":"https://api.github.com/users/redstar/orgs","repos_url":"https://api.github.com/users/redstar/repos","events_url":"https://api.github.com/users/redstar/events{/privacy}","received_events_url":"https://api.github.com/users/redstar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-11T14:23:06Z","updated_at":"2015-11-11T20:15:01Z","closed_at":null,"body":"This application\r\n\r\n    // LDC - the LLVM D compiler (0.16.0-beta2):\r\n    //  based on DMD v2.067.1 and LLVM 3.7.0\r\n    //  Default target: x86_64-pc-windows-msvc\r\n    //\r\n    // ldc2 main.d -w -g -unittest -m64 -oq\r\n    \r\n    void main(string[] args)\r\n    {\r\n    }\r\n    \r\n    align(16) struct some_buf\r\n    {\r\n    align(16):\r\n        long[32] data;\r\n    }\r\n    \r\n    int somefun(ref some_buf) { return 0; }\r\n    \r\n    unittest\r\n    {\r\n        import std.stdio;\r\n        some_buf buf;\r\n        writeln(&buf);\r\n        assert((cast(size_t)&buf & cast(size_t)0b1111) == 0);\r\n        void foo()\r\n        {\r\n            writeln(\"foo\");\r\n            somefun(buf);\r\n        }\r\n        foo();\r\n    }\r\n\r\nasserts because variable `some_buf` is only `align(8)`, not `align(16)`."},"comment":{"url":"https://api.github.com/repos/ldc-developers/ldc/issues/comments/155898163","html_url":"https://github.com/ldc-developers/ldc/issues/1154#issuecomment-155898163","issue_url":"https://api.github.com/repos/ldc-developers/ldc/issues/1154","id":155898163,"user":{"login":"klickverbot","id":19335,"avatar_url":"https://avatars.githubusercontent.com/u/19335?v=3","gravatar_id":"","url":"https://api.github.com/users/klickverbot","html_url":"https://github.com/klickverbot","followers_url":"https://api.github.com/users/klickverbot/followers","following_url":"https://api.github.com/users/klickverbot/following{/other_user}","gists_url":"https://api.github.com/users/klickverbot/gists{/gist_id}","starred_url":"https://api.github.com/users/klickverbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klickverbot/subscriptions","organizations_url":"https://api.github.com/users/klickverbot/orgs","repos_url":"https://api.github.com/users/klickverbot/repos","events_url":"https://api.github.com/users/klickverbot/events{/privacy}","received_events_url":"https://api.github.com/users/klickverbot/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T20:15:01Z","updated_at":"2015-11-11T20:15:01Z","body":"@kinke: Your testcase at https://github.com/ldc-developers/ldc/blob/61dd702b4909f08f4386862707b5b05bc894bfef/tests/ir/align.d already seems to check for at least some cases of local variables, though?"}}