http://d.puremagic.com/issues/show_bug.cgi?id=6582

           Summary: alias this forward reference error
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from David Simcha <[email protected]> 2011-08-30 18:15:19 PDT ---
Happens with both 2.054 stock and Git head:

static struct Impl
{
    File file_;    
}

struct File
{
    struct ByChunkAsync
    { 
        RefCounted!(Impl) impl_;
    }        
}

struct Tuple(Specs...)
{
    Specs field;
    alias field this;
}

struct RefCounted(T)
{
    Tuple!(T, size_t) * _store;
}

test9.d(17): Error: alias this there can be only one alias this
test9.d(15): Error: struct test9.Tuple!(Impl,uint).Tuple has forward references
test9.d(10): Error: template instance test9.RefCounted!(Impl) error
instantiating
test9.d(17): Error: alias this there can be only one alias this

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to