This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch: FYI: avoid use of C++ keywords in gcc/java
- From: "Kaveh R. GHAZI" <ghazi at caip dot rutgers dot edu>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Ben Elliston <bje at au1 dot ibm dot com>, gcc-patches <gcc-patches at gcc dot gnu dot org>, gdr at integrable-solutions dot net
- Date: Tue, 1 Jul 2008 13:56:24 -0400 (EDT)
- Subject: Re: Patch: FYI: avoid use of C++ keywords in gcc/java
- References: <m3tzfjuhk7.fsf@fleche.redhat.com> <1214445099.20696.2.camel@helios> <m3bq1pq66n.fsf@fleche.redhat.com> <Pine.GSO.4.58.0806252352370.17462@caipclassic.rutgers.edu> <m3k5gboq9y.fsf@fleche.redhat.com>
On Thu, 26 Jun 2008, Tom Tromey wrote:
> >>>>> "Kaveh" == Kaveh R GHAZI <ghazi@caip.rutgers.edu> writes:
>
> >> As for folks fixing it... eventually I hope we can do the poison
> >> thing, and then anyone changing it will get an error.
>
> Kaveh> I think Gaby is going to extend -Wc++-compat to warn about these so we
> Kaveh> won't have to poison them long-term (PR21759).
>
> Today I wrote an experimental patch to do this. I've appended it, in
> all its ChangeLog-less glory. This patch is kind of bogus, but it
> works well enough to prevent bootstrapping :). I get a lot of errors
> (due to -Werror) from the C++ FE about uses of 'template' and
> 'namespace' as identifiers.
> Tom
What would it take to get this patch into shape? ChangeLog, docs,
testcases, put it under the control of -Wc++-compat? Anything else?
http://gcc.gnu.org/ml/gcc-patches/2008-06/msg01698.html
--Kaveh
--
Kaveh R. Ghazi ghazi@caip.rutgers.edu