Bug 22376 – importC: Error: cannot use non-constant CTFE pointer in an initializer

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-10-10T12:59:04Z
Last change time
2021-10-21T21:39:28Z
Keywords
ImportC, pull, rejects-valid
Assigned to
No Owner
Creator
Iain Buclaw

Comments

Comment #0 by ibuclaw — 2021-10-10T12:59:04Z
--- char * const errmsg[10] = { ( char *)"need dictionary", ( char *)"stream end", ( char *)"", ( char *)"file error", ( char *)"stream error", ( char *)"data error", ( char *)"insufficient memory", ( char *)"buffer error", ( char *)"incompatible version", ( char *)"" };
Comment #1 by dlang-bot — 2021-10-16T09:53:45Z
@WalterBright created dlang/dmd pull request #13178 "fix Issue 22376 - importC: Error: cannot use non-constant CTFE pointe…" fixing this issue: - fix Issue 22376 - importC: Error: cannot use non-constant CTFE pointer in an initializer https://github.com/dlang/dmd/pull/13178
Comment #2 by dlang-bot — 2021-10-16T11:59:05Z
dlang/dmd pull request #13178 "fix Issue 22376 - importC: Error: cannot use non-constant CTFE pointe…" was merged into stable: - b74f78263884c86e19772225e7cd3083a405567d by Walter Bright: fix Issue 22376 - importC: Error: cannot use non-constant CTFE pointer in an initializer https://github.com/dlang/dmd/pull/13178
Comment #3 by dlang-bot — 2021-10-21T21:39:28Z
dlang/dmd pull request #13209 "Merge stable into master" was merged into master: - cb5d8b85005ea585a1c9bf9485317935bc1c4389 by Walter Bright: fix Issue 22376 - importC: Error: cannot use non-constant CTFE pointer in an initializer https://github.com/dlang/dmd/pull/13209