libdparse icon indicating copy to clipboard operation
libdparse copied to clipboard

Support `align(default)`

Open 0xEAB opened this issue 11 months ago • 0 comments

Upstream D has plans to support align(default) in the future: https://github.com/dlang/dmd/issues/20587 https://github.com/dlang/dmd/pull/20589

At the moment, I’m getting the following errors with serve-d on the upstream test file:

struct S
{
    align(1)
    {
        short x1;
        int y1;
        long z1;

        align(default) /* Primary expression expected */
        { /* declaration expected instead of `{` */
            short x;
            int y;
            long z;
        }
    }
}

0xEAB avatar Dec 30 '24 04:12 0xEAB