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

           Summary: nested structs with conext pointers fail
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: monarchdo...@gmail.com


--- Comment #0 from monarchdo...@gmail.com 2012-11-03 03:00:20 PDT ---
Nesting a struct with a context pointer into another will fail.
//----
import std.stdio;

void main()
{
    int a;

    struct S
    {
        void doit()
        {
            writeln("pre ++a");
            ++a;
            writeln("post ++a");
        }
    }

    static struct SS
    {
        S s;
    }

    SS ss;
    ss.s.doit();
}
//----
pre ++a
object.Error: Access Violation
//----

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

Reply via email to