From the D Blog: Driving with D

Max Samukha maxsamukha at gmail.com
Sun Jun 6 20:11:04 UTC 2021


On Sunday, 6 June 2021 at 18:57:06 UTC, Max Samukha wrote:

> 2) 'align' is mishandled

GCC's bugzilla won't let me register.

align(4)
struct S {
     ubyte[4] bytes;
}

static assert (S.alignof == 4); // fail, S.alignof == 1

It's not specific to AVR. Worked around by placing 'align' inside 
the struct.



More information about the Digitalmars-d-announce mailing list