[Ada] Relax too strong assertions
authorArnaud Charlet <charlet@adacore.com>
Fri, 26 Jun 2020 09:08:37 +0000 (05:08 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 16 Oct 2020 07:31:27 +0000 (03:31 -0400)
gcc/ada/

* scil_ll.adb, sem_scil.adb: Update assertions.

gcc/ada/scil_ll.adb
gcc/ada/sem_scil.adb

index 98ca30d8d75088616dd7245a24b0c13a0cf954f5..af01271bde0c06e53e370d56482305a734fb25e7 100644 (file)
@@ -122,7 +122,7 @@ package body SCIL_LL is
             when N_SCIL_Membership_Test =>
                pragma Assert
                  (Nkind (N) in N_Identifier | N_And_Then | N_Or_Else |
-                               N_Expression_With_Actions);
+                               N_Expression_With_Actions | N_Function_Call);
                null;
 
             when others =>
index f8ad56bb5fa413b9c8ae3a3b45834c6db003a77c..56902b0b99e6894ae60b746ea0ab0f57c0080666 100644 (file)
@@ -135,7 +135,7 @@ package body Sem_SCIL is
             pragma Assert
               (Nkind (N) in
                  N_Identifier | N_And_Then | N_Or_Else |
-                 N_Expression_With_Actions
+                 N_Expression_With_Actions | N_Function_Call
               and then Etype (N) = Standard_Boolean);
 
             --  Check the entity identifier of the associated tagged type (that