This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch: FYI: avoid use of C++ keywords in gcc/java


On Wed, 25 Jun 2008, Tom Tromey wrote:

> 'klass' is already used in a lot of places in gcj without explanation.
> Anyway I'm willing to add a comment, but I don't know where.  I
> definitely don't want to add a comment at every declaration of a
> variable with this name.
>
> As for folks fixing it... eventually I hope we can do the poison
> thing, and then anyone changing it will get an error.
> Tom

I think Gaby is going to extend -Wc++-compat to warn about these so we
won't have to poison them long-term (PR21759).  I don't know if doing this
with a flag will avoid the false positives with token pasting or not.

http://gcc.gnu.org/ml/gcc/2008-06/msg00415.html

Gaby, how's that coming along? :-)

		Thanks,
		--Kaveh
--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]