Bug 22398 – importC: Error: unknown, when compiling source with non-constant initializer.

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-10-17T09:43:10Z
Last change time
2021-12-14T10:34:16Z
Keywords
ice-on-invalid-code, ImportC, pull
Assigned to
No Owner
Creator
Iain Buclaw

Comments

Comment #0 by ibuclaw — 2021-10-17T09:43:10Z
Reduced code --- const int a; int b = a; --- Expected result: --- error: initializer element is not constant int b = a; ^ ---
Comment #1 by dlang-bot — 2021-11-12T00:56:58Z
@WalterBright created dlang/dmd pull request #13289 "fix Issue 22398 - importC: Error: unknown, when compiling source with…" fixing this issue: - fix Issue 22398 - importC: Error: unknown, when compiling source with non-constant initializer https://github.com/dlang/dmd/pull/13289
Comment #2 by dlang-bot — 2021-11-12T04:36:05Z
dlang/dmd pull request #13289 "fix Issue 22398 - importC: Error: unknown, when compiling source with…" was merged into stable: - 1871d69a6c0ea49c39ab1e7c90caedadcde867f6 by Walter Bright: fix Issue 22398 - importC: Error: unknown, when compiling source with non-constant initializer https://github.com/dlang/dmd/pull/13289
Comment #3 by dlang-bot — 2021-12-14T10:34:16Z
dlang/dmd pull request #13421 "merge stable" was merged into master: - 48efeab35922a4a25c8c9c871a347a7ad2ee9931 by Walter Bright: fix Issue 22398 - importC: Error: unknown, when compiling source with non-constant initializer https://github.com/dlang/dmd/pull/13421