Summary: Forward error with static array length
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic, rejects-valid
          Severity: major
          Priority: P2
         Component: DMD

--- Comment #0 from 2011-09-12 15:47:11 PDT ---
D2 code:

enum size_t N = 1;
int[bar.length] foo;
int[N] bar;
void main() {}

DMD 2.055 gives:

Error: cannot create associative array int[N]

This is a very nice bug. There are three problems here: refusing valid code,
thinking bar is an associative array instead of a fixed-sized one, and giving
no line number.

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

Reply via email to