Report error when redefining enumerator