Extensions for C11 compatibility

IBM® XL C++ adds support for some C11 language features.

The following features are enabled by default:
  • _Noreturn function specifier
  • _Thread_local
  • Atomics
  • Composite types for variable length arrays
  • Conversions between pointers and floating types
  • Generic selection
  • Static assertions
  • Temporary lifetime extensions
  • typedef redeclarations
  • Unicode and UTF-8 literals

The complex type initializations feature is enabled when you specify the -qlanglvl=extended or -qlanglvl=extended0x option.



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