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

           Summary: Access Violation when calling a template function of
                    outer class (from inner one)
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: 2kor...@gmail.com


--- Comment #0 from Koroskin Denis <2kor...@gmail.com> 2010-10-08 04:37:41 PDT 
---
Test case:

class A
{
    class B
    {
        void bar()
        {
            return foo!(int)();
        }
    }

    int foo(T)()
    {
        return 42;
    }


    this()
    {
        b = new B();
    }

    B b;
}

void main()
{
    A a = new A();
    a.b.bar();
}

I think the problem is that prior to calling A.foo!(int) it tries to execute an
A.invariant(), but `this' pointer is null for some reason.

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

Reply via email to