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

https://d.puremagic.com/issues/show_bug.cgi?id=11720