fix Issue 6795 - ICE(cgcs.c): Incrementing an enum array item