Hi all, I have been looking for a way to detect a programming error like the following with gcc: enum foo { ZERO,