Bug 22294 – importC: enums aren’t placed in surrounding namespace.

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-09-10T00:46:52Z
Last change time
2021-09-30T01:46:08Z
Keywords
ImportC, pull, rejects-valid
Assigned to
No Owner
Creator
dave287091

Comments

Comment #0 by dave287091 — 2021-09-10T00:46:52Z
enum {A, B, C}; int bar[C]; // Error: undefined identifier `C` In fact, there is no way to even access the above enum. This pattern exists in some header files.
Comment #1 by dlang-bot — 2021-09-13T08:29:27Z
@WalterBright created dlang/dmd pull request #13070 "fix Issue 22294 - importC: enums aren.t placed in surrounding namespace" fixing this issue: - fix Issue 22294 - importC: enums aren.t placed in surrounding namespace https://github.com/dlang/dmd/pull/13070
Comment #2 by dlang-bot — 2021-09-13T09:14:51Z
dlang/dmd pull request #13070 "fix Issue 22294 - importC: enums aren.t placed in surrounding namespace" was merged into stable: - 0e227ef2561f7c4551c64021eaa1c979971168ac by Walter Bright: fix Issue 22294 - importC: enums aren.t placed in surrounding namespace https://github.com/dlang/dmd/pull/13070
Comment #3 by dlang-bot — 2021-09-30T01:46:08Z
dlang/dmd pull request #13108 "merge stable" was merged into master: - e603185db6a8ff201bec7679dc13e83bfdf29fcb by Walter Bright: fix Issue 22294 - importC: enums aren.t placed in surrounding namespace https://github.com/dlang/dmd/pull/13108