A problem found by GrahamC: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.learn&article_id=30987 D2 code, DMD 2.057head: align(1) struct Foo {} // OK unittest { align(1) struct Bar {} // found 'align' instead of statement } void main() { align(1) struct Spam {} // found 'align' instead of statement }
More better link to discussion. http://dfeed.kimsufi.thecybershadow.net/discussion/thread/mailman.1303.1323008066.24802.digitalmars-d-learn@puremagic.com Patch: https://github.com/D-Programming-Language/dmd/pull/562
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/d04348f37e3bfb9e7976f2c360c5c06b4d6f62fd Issue 7065 - align() refused for struct defined inside functions https://github.com/D-Programming-Language/dmd/commit/381eec8240dcc8eeacd9d81285b77f4324f32090 Merge pull request #562 from 9rnsr/fix6534 Issue 6534 & 7065 & 7172 - Parser improvements for inner aggregates
https://github.com/D-Programming-Language/dmd/commit/381eec8240dcc8eeacd9d81285b77f4324f32090