Compiling GCC with g++: a report

Gabriel Dos Reis gdr@integrable-solutions.net
Thu May 26 13:40:00 GMT 2005


"Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> 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
| 
| That's limited.  A new -W flag could catch not only this, but also
| other problems like naked void* -> FOO* conversions.  E.g. IIRC, the
| -Wtraditional flag eventually caught over a dozen different problems.
| Over time this new warning flag for c/c++ intersection could be
| similarly refined.

This is now

     http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21759

-- Gaby



More information about the Gcc mailing list