www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6582] New: alias this forward reference error

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: dsimcha yahoo.com



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: -------
Aug 30 2011
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6582


Maksim Zholudev <maximzms gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |maximzms gmail.com
         Resolution|                            |WORKSFORME



PST ---
Doesn't happen with 2.061 or current Git head.

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