ada: Fix another case of missing Has_Private_View flag
commitd0ffa8d5155db105ce7b6e5b76c489c0fff1d090
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 28 Apr 2023 13:55:38 +0000 (28 15:55 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 13 Jun 2023 07:31:45 +0000 (13 09:31 +0200)
tree811d5844320e4227e14b72c644cb639566afd8bb
parent659aeb219401210220a521eccd6ad95620841245
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.
gcc/ada/sem_ch12.adb