Extensions for C1X compatibility

Note: C1X is a new version of the C programming language standard. IBM continues to develop and implement the features of the new standard. The implementation of the language level is based on IBM's interpretation of the standard. Until IBM's implementation of all the features of the C1X standard is complete, including the support of a new C 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 new features of the C1X standard and therefore they should not be relied on as a stable programming interface.

The following features are part of a continual phased release process leading towards full compliance with C1X. They can be enabled by the -qlanglvl=extc1x group option when you compile with the C compiler. Certain C1X features are also available when you compile with the C++ compiler. For further information, see sections that describe individual features.

Table 1. IBM® XL C language extensions for compatibility with C1X
Language feature Discussed in:
Anonymous structures Anonymous structures
Complex type initialization Initialization of complex types (C1X)
Static assertions _Static_assert declaration
The _Noreturn function specifier The _Noreturn function specifier

Related reference

-qlanglvl in the XL C/C++ Compiler Reference