Extensions for GNU C++ compatibility

The following GNU C++ language extensions are enabled by default.

Table 1. IBM XL C++ language extensions for compatibility with GNU C++
Language feature Discussed in:
__decltype keyword N/A
init_priority variable attribute The init_priority variable attribute

The following GNU C++ language extensions are enabled by default. They can also be enabled or disabled by specific compiler options, listed in the below table:

Table 2. IBM XL C++ language extensions for compatibility with GNU C++, with individual option controls
Language feature Discussed in: Individual option control
Visibility namespace attribute The visibility namespace attribute -fvisibility
Visibility type attribute The visibility type attribute -fvisibility
Note: You can use the -fvisibility option to specify visibility attributes for types and namespaces if they do not get visibility attributes from pragma directives, explicitly specified attributes, or propagation rules. This option cannot be used to disable visibility attributes for types or namespaces.


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