gcc/ada/
* par-ch6.adb (P_Formal_Part): Ada 2020 supports scanning
aspects on formal parameters.
* doc/gnat_rm/implementation_defined_aspects.rst (Aspect
Unreferenced): Update documentation.
* gnat_rm.texi: Regenerate.
This boolean aspect is equivalent to :ref:`pragma Unreferenced<Pragma-Unreferenced>`.
-When using the ``-gnatX`` switch, this aspect is also supported on formal
+When using the ``-gnat2020`` switch, this aspect is also supported on formal
parameters, which is in particular the only form possible for expression
functions.
This boolean aspect is equivalent to @ref{10c,,pragma Unreferenced}.
-When using the @code{-gnatX} switch, this aspect is also supported on formal
+When using the @code{-gnat2020} switch, this aspect is also supported on formal
parameters, which is in particular the only form possible for expression
functions.
-- the time being.
elsif Token = Tok_With then
- if not Extensions_Allowed then
- Error_Msg_SP ("aspect on formal parameter requires -gnatX");
+ if Ada_Version < Ada_2020 then
+ Error_Msg_SP ("aspect on formal parameter requires -gnat2020");
end if;
P_Aspect_Specifications (Specification_Node, False);