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

--- Comment #0 from Koroskin Denis <> 2010-10-08 04:37:41 PDT 
Test case:

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

    int foo(T)()
        return 42;

        b = new B();

    B b;

void main()
    A a = new A();;

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

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to