fix Issue 12217 - Unstable instance mangled name of function local template
Merge pull request #3312 from 9rnsr/fix12217

Issue 12217 - Unstable instance mangled name of function local template