Bug 22585 – importC: Error: variable 'var' extern symbols cannot have initializers

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-12-12T01:03:33Z
Last change time
2021-12-14T07:47:38Z
Keywords
ImportC, pull, rejects-valid
Assigned to
No Owner
Creator
Iain Buclaw

Comments

Comment #0 by ibuclaw — 2021-12-12T01:03:33Z
--- extern const unsigned char array[]; const unsigned char array[4] = { 0, 1, 2, 3, 4 }; --- Caused by PR fix for issue 22537 and issue 22538.
Comment #1 by dlang-bot — 2021-12-12T09:50:26Z
@WalterBright created dlang/dmd pull request #13419 "fix Issue 22585 - importC: Error: variable 'var' extern symbols canno…" fixing this issue: - fix Issue 22585 - importC: Error: variable 'var' extern symbols cannot have initializers https://github.com/dlang/dmd/pull/13419
Comment #2 by dlang-bot — 2021-12-14T07:47:38Z
dlang/dmd pull request #13419 "fix Issue 22585 - importC: Error: variable 'var' extern symbols canno…" was merged into stable: - b06641bd91a0189da12b22ccff788f44741b42a5 by Walter Bright: fix Issue 22585 - importC: Error: variable 'var' extern symbols cannot have initializers https://github.com/dlang/dmd/pull/13419