]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: First controlling parameter aspect
authorJavier Miranda <miranda@adacore.com>
Mon, 5 Aug 2024 20:03:01 +0000 (20:03 +0000)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Fri, 23 Aug 2024 08:51:03 +0000 (10:51 +0200)
gcc/ada/

* sem_ch13.adb (Analyze_One_Aspect): Temporarily remove reporting
an error when the new aspect is set to True and the extensions are
not enabled.

gcc/ada/sem_ch13.adb

index f4ff3a282734337e7103b7c670f7675458992c47..3487931bf4d7736f2b444a10ce283956396c0236 100644 (file)
@@ -4524,9 +4524,6 @@ package body Sem_Ch13 is
                         if (No (Expr) or else Entity (Expr) = Standard_True)
                           and then not Core_Extensions_Allowed
                         then
-                           Error_Msg_GNAT_Extension
-                             ("'First_'Controlling_'Parameter", Sloc (Aspect),
-                              Is_Core_Extension => True);
                            goto Continue;
                         end if;