Bug 22726 – ImportC: typedefs of tagged enums fail to compile

Status
RESOLVED
Resolution
FIXED
Severity
blocker
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-02-02T09:50:46Z
Last change time
2023-08-30T15:05:50Z
Keywords
ImportC, pull, rejects-valid
Assigned to
No Owner
Creator
Max Samukha
See also
https://issues.dlang.org/show_bug.cgi?id=24121

Comments

Comment #0 by maxsamukha — 2022-02-02T09:50:46Z
test.c: typedef enum E { a } E; int main() { return 0; } ---- dmd test.c test.c(1): Error: `enum E` has no members
Comment #1 by maxsamukha — 2022-02-03T05:59:09Z
*** Issue 22728 has been marked as a duplicate of this issue. ***
Comment #2 by dlang-bot — 2022-02-03T06:03:44Z
@WalterBright updated dlang/dmd pull request #13606 "fix importC: error: enum has no members when compiling typedefed enum" fixing this issue: - fix Issue 22726: ImportC: typedefs of tagged enums fail to compile https://github.com/dlang/dmd/pull/13606
Comment #3 by dlang-bot — 2022-02-03T17:06:42Z
dlang/dmd pull request #13606 "Issue 22726 - ImportC: typedefs of tagged enums fail to compile" was merged into master: - abed261fec37e40b86887206e96bb9f898a786c1 by Walter Bright: fix Issue 22726: ImportC: typedefs of tagged enums fail to compile https://github.com/dlang/dmd/pull/13606