www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8254] New: nested struct cannot access the types of the parent's fields

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

           Summary: nested struct cannot access the types of the parent's
                    fields
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: timon.gehr gmx.ch



DMD 2.059/2.060head

struct S{
    int s;
    struct T{
        void f(){typeof(s) t;} // error
    }
}

The code should compile.

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