[Ada] AI12-0194: Language-defined aspects and entry bodies
authorGary Dismukes <dismukes@adacore.com>
Tue, 16 Jun 2020 20:08:34 +0000 (16:08 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 27 Jul 2020 08:05:17 +0000 (04:05 -0400)
gcc/ada/

* sem_prag.adb (Analyze_Pragma, Pragma_Max_Entry_Queue_Length):
Refine error message to indicate that the pragma must apply to
an entry declaration, not just an entry.

gcc/ada/sem_prag.adb

index f7019caebea8b702298ad00165928fffcd86c575..a8f89876702829ea54344e066ced9222a710646c 100644 (file)
@@ -19452,7 +19452,8 @@ package body Sem_Prag is
             --  Otherwise the pragma is associated with an illegal construct
 
             else
-               Error_Pragma ("pragma % must apply to a protected entry");
+               Error_Pragma
+                 ("pragma % must apply to a protected entry declaration");
                return;
             end if;