+2019-12-12 Ed Schonberg <schonberg@adacore.com>
+
+ * sem_res.adb: Fix processing of standard predefined operators.
+
2019-12-12 Piotr Trojanek <trojanek@adacore.com>
* libgnarl/a-dispat.ads (Yield): Update Global contract.
-- matches that of the formals. For a predefined operqtor,
-- it is the scope that matters, given that the predefined
-- equality has Any_Type formals. In either case the result
- -- type (most often Booleam) must match the context .
+ -- type (most often Booleam) must match the context .The
+ -- scope is either that of the type if there is a generated
+ -- equality (when there is an equality for the component type)
+ -- or else Standard otherwise.
while Present (It.Typ) loop
if Etype (It.Nam) = Typ
and then
(Etype (First_Entity (It.Nam)) = Etype (L)
+ or else Scope (It.Nam) = Standard_Standard
or else Scope (It.Nam) = Scope (T))
then
Set_Entity (N, It.Nam);