[gcc(refs/users/guojiufu/heads/personal-branch)] [Ada] AI12-0194: Language-defined aspects and entry bodies
Jiu Fu Guo
guojiufu@gcc.gnu.org
Mon Aug 10 07:22:26 GMT 2020
https://gcc.gnu.org/g:26ac7446f607b1b031bbd38fab28265fd772f8a5
commit 26ac7446f607b1b031bbd38fab28265fd772f8a5
Author: Gary Dismukes <dismukes@adacore.com>
Date: Tue Jun 16 16:08:34 2020 -0400
[Ada] AI12-0194: Language-defined aspects and entry bodies
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.
Diff:
---
gcc/ada/sem_prag.adb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gcc/ada/sem_prag.adb b/gcc/ada/sem_prag.adb
index f7019caebea..a8f89876702 100644
--- a/gcc/ada/sem_prag.adb
+++ b/gcc/ada/sem_prag.adb
@@ -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;
More information about the Gcc-cvs
mailing list