public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-1768] ada: Fix another case of missing Has_Private_View flag
@ 2023-06-13  7:34 Marc Poulhi?s
  0 siblings, 0 replies; only message in thread
From: Marc Poulhi?s @ 2023-06-13  7:34 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:d0ffa8d5155db105ce7b6e5b76c489c0fff1d090

commit r14-1768-gd0ffa8d5155db105ce7b6e5b76c489c0fff1d090
Author: Eric Botcazou <ebotcazou@adacore.com>
Date:   Fri Apr 28 15:55:38 2023 +0200

    ada: Fix another case of missing Has_Private_View flag
    
    It occurs for the case of a function call first parsed as an identifier.
    
    gcc/ada/
    
            * sem_ch12.adb (Save_References_In_Identifier): In the case where
            the identifier has been turned into a function call by analysis,
            call Set_Global_Type on the entity if it is global.

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

diff --git a/gcc/ada/sem_ch12.adb b/gcc/ada/sem_ch12.adb
index 0ef894e153b..a38ab284ce7 100644
--- a/gcc/ada/sem_ch12.adb
+++ b/gcc/ada/sem_ch12.adb
@@ -16526,7 +16526,7 @@ package body Sem_Ch12 is
                   E := Entity (Name (N2));
 
                   if Present (E) and then Is_Global (E) then
-                     Set_Etype (N, Etype (N2));
+                     Set_Global_Type (N, N2);
                   else
                      Set_Associated_Node (N, Empty);
                      Set_Etype (N, Empty);

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

only message in thread, other threads:[~2023-06-13  7:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-13  7:34 [gcc r14-1768] ada: Fix another case of missing Has_Private_View flag Marc Poulhi?s

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).