[Issue 22294] New: importC: enums aren’t placed in surrounding namespace.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 10 00:46:52 UTC 2021


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

          Issue ID: 22294
           Summary: importC: enums aren’t placed in surrounding namespace.
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: dave287091 at gmail.com

enum {A, B, C};

int bar[C]; // Error: undefined identifier `C`


In fact, there is no way to even access the above enum.


This pattern exists in some header files.

--


More information about the Digitalmars-d-bugs mailing list