digitalmars.D.bugs - [Issue 1355] New: Can't declare struct with align attribute in a statement body.
- d-bugmail puremagic.com (18/18) Jul 20 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1355
- d-bugmail puremagic.com (16/16) Mar 08 2010 http://d.puremagic.com/issues/show_bug.cgi?id=1355
http://d.puremagic.com/issues/show_bug.cgi?id=1355 Summary: Can't declare struct with align attribute in a statement body. Product: D Version: 1.017 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: aziz.kerim gmail.com void foo() { align (1) struct bar { int a; } } --
Jul 20 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1355 Manuel König <manuelk89 gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manuelk89 gmx.net --- Comment #1 from Manuel König <manuelk89 gmx.net> 2010-03-08 09:33:11 PST --- I ran into this bug on LDC too (don't have dmd at hand), see this closed bug: http://www.dsource.org/projects/ldc/ticket/399 . It turns out that it's probably a parse error (which implies that it's most likely not implemented in the back end too). Christian Kamm could also reproduce this on dmd. I don't know which version he used though, probably one of the newer 1.05x releases. As a workaround you can of course declare the struct on module level. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 08 2010