fix Issue 11720 - Function-local static variables should cause "already defined in another scope" error
Merge pull request #2947 from 9rnsr/fix11720

Issue 11720 - Function-local static variables should cause "already defined in another scope" error