fix Issue 13415 - '-inline' causes wrong enclosing scope pointer for nested function called from templated struct
Merge pull request #3942 from 9rnsr/fix13415

[REG2.066] Issue 13415 - '-inline' causes wrong enclosing scope pointer for nested function called from templated struct