Compiling GCC with g++: a report

Gabriel Dos Reis gdr@integrable-solutions.net
Wed May 25 08:36:00 GMT 2005


DJ Delorie <dj@redhat.com> writes:

| > Now we have e.g. XNEW* and all we need is a new -W* flag to catch
| > things like using C++ keywords and it should be fairly automatic to
| > keep incompatibilities out of the sources.
| 
| Why not this?
| 
| #ifndef __cplusplus
| #pragma GCC poison class template new . . .
| #endif

I like it for GCC source code.  It would be nice to have  for libiberty.h
when everything is converted :-)

There was a suggestion from a different person that they might want
to check similar things that for their projects, so there might be some
usefulness to a -W switch...

-- Gaby



More information about the Gcc mailing list