The compiler has a mode where compliance to a source language is enforced.
In strict mode the compiler enforces compliance with the language standard relevant to the source language. For example, the use of //-style comments results in an error when compiling strict C90.
To compile in strict mode, use the command-line option --strict.
For example, compiling a .cpp file with the command-line option --strict compiles Standard C++
See also