Summary: enum of run-time array length
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2010-09-01 12:11:48 PDT ---
This compiles with no errors with DMD 2.048, but I think it's a bug, because
args.length is a value known only at a run-time, while enum is for values known
at compile-time:

void main(string[] args) {
    enum int n = args.length;

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to