[Issue 2278] Guarantee alignment of stack-allocated variables on x86

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 19 06:06:17 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=2278


Temtaime <temtaime at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|enhancement                 |regression


--- Comment #12 from Temtaime <temtaime at gmail.com> 2014-02-19 06:06:01 PST ---
BUMP.

align(16) struct A { ubyte t; }

void main() {
    A a;
    writeln(cast(size_t)&a % 16);
}

Prints 4 right now.
When it will be fixed?

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list