[Ada] Preelaborate rules not fully enforced
authorArnaud Charlet <charlet@adacore.com>
Tue, 30 Jun 2020 16:06:12 +0000 (12:06 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 16 Oct 2020 07:34:54 +0000 (03:34 -0400)
gcc/ada/

* sem_cat.adb (Is_Primary): Handle N_Range properly.

gcc/ada/sem_cat.adb

index be1e67e57c6d2bfd4e4e396244e2f806b0dbd313..7872c6821fc85c0e24ae51cd4f43aa1dfe863cb0 100644 (file)
@@ -2121,6 +2121,7 @@ package body Sem_Cat is
                | N_Index_Or_Discriminant_Constraint
                | N_Membership_Test
                | N_Op
+               | N_Range
             =>
                return True;