2.61 Pragma Extensions_Allowed

Syntax:

pragma Extensions_Allowed (On | Off | All);

This configuration pragma enables (via the “On” or “All” argument) or disables (via the “Off” argument) the implementation extension mode; the pragma takes precedence over the ‘-gnatX’ and ‘-gnatX0’ command switches.

If an argument of “All” is specified, the latest version of the Ada language is implemented (currently Ada 2022) and, in addition, a number of GNAT specific extensions are recognized. These extensions are listed below. An argument of “On” has the same effect except that only some, not all, of the listed extensions are enabled; those extensions are identified below.