[Issue 7396] Indicate default alignment with 0.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 29 18:46:46 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7396
Iain Buclaw <ibuclaw at ubuntu.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ibuclaw at ubuntu.com
--- Comment #4 from Iain Buclaw <ibuclaw at ubuntu.com> 2012-01-29 18:46:43 PST ---
The idea was that, ie:
struct foo
{
align(8) int bar;
}
be equivalent to:
struct foo
{
int bar __attribute__((aligned(8)));
};
Currently this is not the case in DMDFE, as the user defined alignment is
pretty much ignored (unless the value 4 or less?).
Slightly off note, but there is also no error if the aligned value given is not
a power of 2, eg: align(3).
--
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