What does -fpermissive permit?

Ian Lance Taylor iant@google.com
Tue Oct 6 15:18:00 GMT 2009


Ken Klein <ka.klein@verizon.net> writes:

> Hi.  Can someone point me to a list of what the -fpermissive option
> permits?  The manual is vague about this.  Thanks! 

I don't think there is a list.  You can grep for flag_permissive and
permerror in the source code.  Also, if you use
-fdiagnostics-show-option with gcc 4.4 it will tell you if an error
may be disabled using -fpermissive.

In general the gcc maintainers provide -fpermissive to make it
possible to compile older non-standard-compliant code, but discourage
its use.

Ian



More information about the Gcc-help mailing list