5.7.3.7 Std Option

The -std=standard option specifies the C standard to which the compiler assumes source code will conform. The allowable standards are listed below.

Table 5-10. Acceptable Language Standards
StandardSupports
c89 or c90ISO C90 (ANSI) programs
c99ISO C99 programs
c11ISO C11 programs
gnu89 or gnu90GNU dialect of ISO C90 programs
gnu99GNU dialect of ISO C99 programs
gnu11GNU dialect of ISO C11 programs
C++98 ISO C++98 programs
C++03ISO C++03 programs
C++11ISO C++11 programs
C++14ISO C++14 programs
C++17ISO C++17 programs
GNU++98GNU dialect of ISO C++98 programs
GNU++11GNU dialect of ISO C++11 programs
GNU++14GNU dialect of ISO C++14 programs
GNU++17GNU dialect of ISO C++17 programs

If this option is not specified, gnu++17 is the default language standard.