Extensions for GNU C++ compatibility
The following GNU C++ language extensions are enabled by default.
| 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:
| 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.
|
||


