Summary: alias to const type in struct results in strange error
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic, rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Trass3r <> 2011-08-14 11:54:17 PDT ---
struct Blub
    alias const(void*) T;

    ~this() {}
    invariant() {}

$ dmd -c wrapper.d 
DMD v2.054 DEBUG
Error: __result = this is not mutable
Error: __result = this is not an lvalue

Somehwat related to bug 5690 but this one doesn't show an error location and
there is no "real" const member, just an alias.

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

Reply via email to