[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.
This commit is contained in:
Gary Dismukes 2020-06-16 16:08:34 -04:00 committed by Pierre-Marie de Rodat
parent 84ae33e7f5
commit 26ac7446f6
1 changed files with 2 additions and 1 deletions

View 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;