[Issue 7065] New: align() refused for struct defined inside functions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Dec 4 09:33:28 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7065
Summary: align() refused for struct defined inside functions
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2011-12-04 09:33:26 PST ---
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
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list