Summary: Can't access member variables from templated nested
                    member function
           Product: D
           Version: 2.031
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD

struct Foo {
    uint number;

    void doStuff(uint num) {

        void doMoreStuff(T)(T num2) {


test.d(7): Error: need 'this' to access member number

Also happens if Foo is a class instead of a struct.  Does not happen if
doMoreStuff() is a plain old function instead of a function template.

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

Reply via email to