public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3736] [Ada] Presence of abstract operator function causes resolution problems
@ 2021-09-21 15:26 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-09-21 15:26 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:704d03a4e356993a5b5216f3728e3edade782853

commit r12-3736-g704d03a4e356993a5b5216f3728e3edade782853
Author: Gary Dismukes <dismukes@adacore.com>
Date:   Fri Jul 2 16:51:31 2021 -0400

    [Ada] Presence of abstract operator function causes resolution problems
    
    gcc/ada/
    
            * sem_ch4.adb (Remove_Abstract_Operations): Add condition to
            test for an E_Operator as part of criteria for setting
            Abstract_Op on interpretations involving predefined operators.

Diff:
---
 gcc/ada/sem_ch4.adb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/ada/sem_ch4.adb b/gcc/ada/sem_ch4.adb
index 1f1f5aaee61..543ba12f6ed 100644
--- a/gcc/ada/sem_ch4.adb
+++ b/gcc/ada/sem_ch4.adb
@@ -8029,6 +8029,7 @@ package body Sem_Ch4 is
                while Present (It.Nam) loop
                   if Is_Numeric_Type (It.Typ)
                     and then Scope (It.Typ) = Standard_Standard
+                    and then Ekind (It.Nam) = E_Operator
                   then
                      Set_Abstract_Op (I, Abstract_Op);
                   end if;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-21 15:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-21 15:26 [gcc r12-3736] [Ada] Presence of abstract operator function causes resolution problems Pierre-Marie de Rodat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).