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