[Issue 6582] New: alias this forward reference error
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Aug 30 18:15:23 PDT 2011
    
    
  
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: nobody at puremagic.com
        ReportedBy: dsimcha at yahoo.com
--- Comment #0 from David Simcha <dsimcha at yahoo.com> 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: -------
    
    
More information about the Digitalmars-d-bugs
mailing list