May 03, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2926

           Summary: bug in alias this with mutually recursive structs
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: andrei@metalanguage.com


struct A(T)
{
    B!T fun()
    {
        return B!T.init;
    }
}

struct B(T)
{
    private A!T _s;
    alias _s this;
}

void main() {
    A!(int) s;
}

./test.d(15): Error: alias this there can be only one alias this
./test.d(6): Error: template instance test.B!(int) error instantiating
./test.d(15): Error: alias this there can be only one alias this


-- 

February 20, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=2926


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies@gmail.com
           Platform|x86                         |All
            Version|2.000                       |D2
         Resolution|                            |WORKSFORME
         OS/Version|Linux                       |All


--- Comment #1 from yebblies <yebblies@gmail.com> 2012-02-20 22:24:40 EST ---
This seems to work in dmd 2.058

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