This is the mail archive of the
mailing list for the GCC project.
Re: Using C++ in GCC is OK
- From: Paolo Bonzini <bonzini at gnu dot org>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: Mark Mitchell <mark at codesourcery dot com>, GCC <gcc at gcc dot gnu dot org>
- Date: Thu, 03 Jun 2010 10:34:13 +0200
- Subject: Re: Using C++ in GCC is OK
- References: <4C030228.email@example.com> <firstname.lastname@example.org>
On 06/01/2010 08:10 AM, Ian Lance Taylor wrote:
Mark Mitchell<email@example.com> writes:
I am pleased to report that the GCC Steering Committee and the FSF have
approved the use of C++ in GCC itself. Of course, there's no reason for
us to use C++ features just because we can. The goal is a better
compiler for users, not a C++ code base for its own sake.
I would like to thank Mark and the SC for securing this agreement.
Before we start to actually use C++, we need to determine a set of
coding standards that will apply to use of C++ within GCC.
I have written a proposed set of C++ coding conventions on the wiki at
This is only a preliminary proposal. It requires fleshing out and
discussion. Comments welcome.
Another rule came to mind after skimming Effective C++. It's obviously
too late to convert casts to C++ casts, but we should never use C casts
when a static_cast would not be enough. Or, at least, when a const_cast
would be required. This should also be warned by the compiler.