This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc-in-cxx branch created
- From: Arnaud Charlet <charlet at adacore dot com>
- To: Chris Lattner <clattner at apple dot com>
- Cc: Bruno Haible <bruno at clisp dot org>, Ian Lance Taylor <iant at google dot com>, gcc at gcc dot gnu dot org, Arnaud Charlet <charlet at adacore dot com>
- Date: Mon, 23 Jun 2008 08:58:21 +0200
- Subject: Re: gcc-in-cxx branch created
- References: <200806230124.32597.bruno@clisp.org> <4E9A5F81-3ECD-4E4D-A4D2-3535B7DC189B@apple.com>
>> 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