Bug 22079 – importC: Error: '=', ';' or ',' expected taking sizeof compound literal

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-06-23T11:57:39Z
Last change time
2021-06-24T13:49:51Z
Keywords
ImportC, pull, rejects-valid
Assigned to
No Owner
Creator
Iain Buclaw

Comments

Comment #0 by ibuclaw — 2021-06-23T11:57:39Z
Reduced test: --- struct S { int field; }; void main() { int var = sizeof (struct S) { 42 }; }
Comment #1 by dlang-bot — 2021-06-23T21:21:50Z
@ibuclaw created dlang/dmd pull request #12741 "fix Issue 22079 - importC: Error: '=', ';' or ',' expected taking sizeof compound literal" fixing this issue: - fix Issue 22079 - importC: Error: '=', ';' or ',' expected taking sizeof compound literal https://github.com/dlang/dmd/pull/12741
Comment #2 by dlang-bot — 2021-06-24T13:49:51Z
dlang/dmd pull request #12741 "fix Issue 22079 - importC: Error: '=', ';' or ',' expected taking sizeof compound literal" was merged into master: - e14715a571a926c14e5c944b51edcbde4e926369 by Iain Buclaw: fix Issue 22079 - importC: Error: '=', ';' or ',' expected taking sizeof compound literal https://github.com/dlang/dmd/pull/12741