gcc-in-cxx branch created
Arnaud Charlet
charlet@adacore.com
Mon Jun 23 06:58:00 GMT 2008
>> 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
More information about the Gcc
mailing list