Bug 24475 – ImportC: allow _Alignof expression

Status
NEW
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-04-01T05:25:42Z
Last change time
2024-12-13T19:34:25Z
Keywords
ImportC
Assigned to
No Owner
Creator
dave287091
Moved to GitHub: dmd#20434 →

Comments

Comment #0 by dave287091 — 2024-04-01T05:25:42Z
C standard only defines: _Alignof ( type-name ) whereas sizeof is defined as: sizeof unary-expression sizeof ( type-name ) However, gcc and clang also accept _Alignof unary-expression with the obvious semantics of an implicit typeof on the unary-expression, in the same manner as sizeof. I’ve encountered this in some code.
Comment #1 by robert.schadek — 2024-12-13T19:34:25Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20434 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB