Kevin Handy wrote: >> That was caught at link time (and dealt with). >> >> > Would it be possible to add a diagnostic to GCC to warn when C++ > keywords are being used as identifiers? Maybe also add any > objective C keywords too. > > This seems like it would be useful to someone writing library > functions that could, at some later time, be imported (cut and paste) > into code for the other languages, as well as for code being converted > from C to C++.
I'd like such a switch too. Until it's done, we could just poison C++ keywords in system.h. -- // Bernardo Innocenti - Develer S.r.l., R&D dept. \X/ http://www.develer.com/