Summary: Can't alias an enum of an aliased struct
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Andrej Mitrovic <> 2011-12-24 
18:12:35 PST ---
This is a real bug from the DIL compiler:

struct Foo

struct Bar
    alias Foo F;
    alias F.One First;  // alias Foo.One First; would work

void main()

test.d(14): Error: alias test.Bar.First cannot alias an expression 0

What's interesting is that this compiles fine in DMD1.

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

Reply via email to