Bug 22333 – ImportC: fails to parse enumerators with = and gnu attributes

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

Comments

Comment #0 by dave287091 — 2021-09-24T08:35:08Z
An example: // enum.c enum E { oldval __attribute__((deprecated)) = 0, newval }; int fn (void) { return oldval; } enum.c(3): Error: found `=` when expecting `}` enum.c(3): Error: identifier or `(` expected enum.c(5): Error: `=`, `;` or `,` expected macOS’s version of time.h uses this.
Comment #1 by dlang-bot — 2021-09-27T06:43:54Z
@WalterBright created dlang/dmd pull request #13100 "fix Issue 22333 - ImportC: fails to parse enumerators with = and gnu …" fixing this issue: - fix Issue 22333 - ImportC: fails to parse enumerators with = and gnu attributes https://github.com/dlang/dmd/pull/13100
Comment #2 by dlang-bot — 2021-09-28T05:32:33Z
dlang/dmd pull request #13100 "fix Issue 22333 - ImportC: fails to parse enumerators with = and gnu …" was merged into stable: - f1a3d52f870e00e8b38b894eaeadff6985b743c6 by Walter Bright: fix Issue 22333 - ImportC: fails to parse enumerators with = and gnu attributes https://github.com/dlang/dmd/pull/13100
Comment #3 by dlang-bot — 2021-09-30T01:46:16Z
dlang/dmd pull request #13108 "merge stable" was merged into master: - 6c97bec5349f7cea62b2a5138277776ead990ded by Walter Bright: fix Issue 22333 - ImportC: fails to parse enumerators with = and gnu attributes (#13100) https://github.com/dlang/dmd/pull/13108