Issue 11664 - A function with a local static variable is unusable in CTFE

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