[Issue 23363] ImportC: Enums contain wrong members

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 24 04:06:39 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23363

--- Comment #1 from TheGag96 <kipthemudkip at yahoo.com> ---
Sorry - doing a bit of compiler debugging, those values seem to come from
/usr/include/x86_64-linux-gnu/bits/waitflags.h:


typedef enum
{
  P_ALL,                /* Wait for any child.  */
  P_PID,                /* Wait for specified process.  */
  P_PGID                /* Wait for members of process group.  */
} idtype_t;


And it appears all enums affected by this issue are ones declared afterward as
the form:


typedef enum {
  //members
} some_enum_name;


I think more accurately, all enums declared this way are piggybacking off of
the enums of the first one.

--


More information about the Digitalmars-d-bugs mailing list