Fixed #4857 (False Positive: function argument hides enumerator of same type)