[Issue 23887] New: ImportC: extend enums to support longs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 5 08:14:29 UTC 2023


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 at puremagic.com
          Reporter: bugzilla at digitalmars.com

>From 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`

--


More information about the Digitalmars-d-bugs mailing list