August 05, 2021 [Issue 22180] New: .alignof not working for globals | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=22180 Issue ID: 22180 Summary: .alignof not working for globals Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: bugzilla@digitalmars.com align(8) int x; pragma(msg, x.alignof); aligns x correctly on 8 bytes, but the msg prints "4". -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply