digitalmars.D.bugs - [Issue 23887] New: ImportC: extend enums to support longs
- d-bugmail puremagic.com (20/21) May 05 2023 https://issues.dlang.org/show_bug.cgi?id=23887
https://issues.dlang.org/show_bug.cgi?id=23887 Issue ID: 23887 Summary: ImportC: extend enums to support longs Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: bugzilla digitalmars.comFrom Patrick Schluter:- enum constants bigger than uint. Full in undefined behaviour territory according to the standard, gcc defines the behaviour and defines enums as long/unsigned long/long long/unsigned long long if necessary. ImportC rejects for instance Error: enum member `lang.LANID_TYPE.LANID_GL` enum member value `4294967296LU` does not fit in an `int` --
May 05 2023