D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 22376 - importC: Error: cannot use non-constant CTFE pointer in an initializer
Summary: importC: Error: cannot use non-constant CTFE pointer in an initializer
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 major
Assignee: No Owner
URL:
Keywords: ImportC, pull, rejects-valid
Depends on:
Blocks:
 
Reported: 2021-10-10 12:59 UTC by Iain Buclaw
Modified: 2021-10-21 21:39 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Iain Buclaw 2021-10-10 12:59:04 UTC
---
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 Dlang Bot 2021-10-16 09:53:45 UTC
@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 Dlang Bot 2021-10-16 11:59:05 UTC
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 Dlang Bot 2021-10-21 21:39:28 UTC
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