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