This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g++ 2.96 problem
- To: sheyn at cs dot bu dot edu
- Subject: Re: g++ 2.96 problem
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- Date: Mon, 12 Jun 2000 17:58:46 -0500 (CDT)
- CC: gcc-bugs at gcc dot gnu dot org
- Reply-to: rittle at rsch dot comm dot mot dot com
> If I change variable compl to anything else, it works. So the
> question is, is compl a reserved word for C++?
See page 829 of _The C++ Programming Language_, Special Edition.
compl is unconditionally a C++ keyword with the same meaning as ~.
For whatever it is worth, C99 requires that a header be included to
get the operator names (which of course are usually just macros not
keywords as in C++).
> It wasn't the case in g++ 2.95.x
g++ is now more compliant with the ISO standard. This is a good thing.
As a short-term way to get old code to compile, try adding:
-fno-operator-names
However, any code that uses operator names (in any manner other than
as a keyword) should be converted ASAP.
Regards,
Loren