fix
Issue 11946 - need 'this' to access member when passing field to template parameter
Merge pull request #3884 from WalterBright/fix11946

[reg] fix Issue 11946 - need 'this' to access member when passing field to template parameter