Right from the docs:
-fpermissive
Downgrade some diagnostics about nonconformant code from errors to warnings.
Thus, using-fpermissive
will allow some nonconforming code to compile.
Bottom line: don’t use it unless you know what you are doing!
More Related Contents:
- Selectively disable GCC warnings for only part of a translation unit
- How to get rid of `deprecated conversion from string constant to ‘char*’` warnings in GCC?
- Dual emission of constructor symbols
- Why does typeid.name() return weird characters using GCC and how to make it print unmangled names?
- Is right shift undefined behavior if the count is larger than the width of the type?
- when g++ static link pthread, cause Segmentation fault, why?
- GCC ABI compatibility
- Difference in performance between MSVC and GCC for highly optimized matrix multplication code
- How to raise warning if return value is disregarded?
- How to tell where a header file is included from?
- How to include omp.h in OS X?
- When including header files, is the path case sensitive?
- What is the difference between MinGW, MinGW-w64 and MinGW-builds?
- Compiling with -static-libgcc -static-libstdc++ still results in dynamic dependency on libc.so
- std::put_time implementation status in GCC?
- Overloaded lambdas in C++ and differences between clang and gcc
- GNU C++ how to check when -std=c++0x is in effect?
- Does a c/c++ compiler optimize constant divisions by power-of-two value into shifts?
- Which types on a 64-bit computer are naturally atomic in gnu C and gnu C++? — meaning they have atomic reads, and atomic writes
- Does the restrict keyword provide significant benefits in gcc/g++?
- std::thread error (thread not member of std)
- Can nullptr be emulated in gcc?
- How do I temporarily disable a macro expansion in C/C++?
- Does GCC inline C++ functions without the ‘inline’ keyword?
- Measuring exception handling overhead in C++
- Undocumented GCC Extension: VLA in struct
- How should I use g++’s -finput-charset compiler option correctly in order to compile a non-UTF-8 source file?
- How can I define a string literal on the GCC command line?
- Compiling an application for use in highly radioactive environments
- List of common C++ Optimization Techniques [closed]