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

          Issue ID: 14957
           Summary: order of declaration at global scope
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

enum A = 1;
enum B = C; //Error
static if(A)
    enum C = 0;
enum D = C; //OK

--

Reply via email to