Summary: No line number with associative array creation error
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: major
          Priority: P2
         Component: DMD

--- Comment #0 from 2012-02-24 11:08:41 PST ---
D2 code:

struct Foo {
    Spam x;
    alias int[Foo*] Spam;
    Spam bar() {
        return x;
void main() {
    foreach (y; Foo().bar()) {}

DMD 2.059head gives an error with no line number:

Error: cannot create associative array int[Foo*]

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

Reply via email to