September 28, 2016 [Issue 16563] New: [REG HEAD] Wrong struct size/alignment in local struct | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16563 Issue ID: 16563 Summary: [REG HEAD] Wrong struct size/alignment in local struct Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: wrong-code Severity: regression Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: thecybershadow@gmail.com /////////////// test.d ////////////// void test() { align(1) struct S { uint i; ubyte b; static assert(S.sizeof == 5); } } ///////////////////////////////////// Introduced in https://github.com/dlang/dmd/pull/5880. -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply