Extensions for C11 compatibility

Note: IBM supports selected features of C11, known as C1X before its ratification. IBM will continue to develop and implement the features of this standard. The implementation of the language level is based on IBM's interpretation of the standard. Until IBM's implementation of all the C11 features is complete, including the support of a new C11 standard library, the implementation may change from release to release. IBM makes no attempt to maintain compatibility, in source, binary, or listings and other compiler interfaces, with earlier releases of IBM's implementation of the C11 features.
IBM® XL C++ adds support for the following C11 language feature. This feature can be enabled with the -qlanglvl=extended option, which is the default language level.
Table 1. IBM XL C++ language extensions for compatibility with C11
Language feature Discussed in:
_Noreturn function specifier The _Noreturn function specifier
Complex type initializations Initialization of complex types (C11)
Static assertions _Static_assert declaration
typedef redeclarations typedef definitions


Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us