fix Issue 6795 - ICE(cgcs.c): Incrementing an enum array item
Merge pull request #1863 from WalterBright/fix6795

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