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: [email protected]
          Reporter: [email protected]

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.

--

Reply via email to