Bug 7065 – align() refused for struct defined inside functions

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-12-04T09:33:00Z
Last change time
2012-10-08T04:44:59Z
Keywords
patch, rejects-valid
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2011-12-04T09:33:26Z
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 }
Comment #1 by k.hara.pg — 2011-12-19T22:03:09Z
Comment #2 by github-bugzilla — 2012-10-08T04:44:27Z
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
Comment #3 by yebblies — 2012-10-08T04:44:59Z