1
# DP: Fix PR ada/47818: Pragma Assert is rejected with No_Implementation_Pragmas restriction.
3
Index: b/src/gcc/ada/sem_prag.adb
4
===================================================================
5
--- a/src/gcc/ada/sem_prag.adb
6
+++ b/src/gcc/ada/sem_prag.adb
7
@@ -11334,7 +11334,16 @@ package body Sem_Prag is
12
+ -- This could be a rewritten pragma Assert. If it is the case
13
+ -- then don't check restrictions, because they are different for
14
+ -- pragma Assert and were already checked.
16
+ if Nkind (Original_Node (N)) /= N_Pragma
17
+ or else Pragma_Name (Original_Node (N)) /= Name_Assert
22
Check_At_Least_N_Arguments (2);
23
Check_At_Most_N_Arguments (3);
24
Check_Optional_Identifier (Arg1, Name_Name);