g++'s non-conformance

Joe Buck jbuck@synopsys.COM
Fri Dec 31 23:54:00 GMT 1999


roman@nstl.nnov.ru writes:

> Maybe it [-foperator_names] should be on by default ?

The reason it is not on by default is that there are still large numbers
of header files out there that use these words [and,or,etc] as keywords.
We could make fixincludes more aggressive, to fix system headers, but
then there's user code as well.

It will be turned on if you add the -ansi flag as well.  If you want
the compiler to be as close as possible to the standard, use -ansi
(there will still be some deviations because of bugs and unimplemented
features).



More information about the Gcc mailing list