Bug 21979 – importC: Error: '{ initializer-list }' is not implemented
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-05-26T11:43:33Z
Last change time
2021-06-14T11:10:23Z
Keywords
ImportC, pull, rejects-valid
Assigned to
No Owner
Creator
Iain Buclaw
Comments
Comment #0 by ibuclaw — 2021-05-26T11:43:33Z
When compiling this code.
---
int test()
{
typedef struct { int a; } mystruct;
mystruct var = { 42 };
}
Comment #1 by dlang-bot — 2021-06-03T09:24:48Z
@WalterBright updated dlang/dmd pull request #12627 "ImportC: distinguish cast from ( expresion )" fixing this issue:
- fix Issue 21979 ImportC: does not distinguish between cast-expression and unary-expression correctly
https://github.com/dlang/dmd/pull/12627