>> How can maintainers ensure this does not happen? > > What is your suggestion, stay with C? It doesn't have type safe enums > either.
One possibility is to do what we do for Ada: have a style/coding checker built into the compiler (C++ front-end) as a special switch, and enable this switch during bootstrap, so that any such coding style violation is transformed into an error (actually a warning, transformed then into an error with -Werror). Arno