From: Eric Botcazou Date: Thu, 19 Sep 2019 08:14:42 +0000 (+0000) Subject: [Ada] Sem_Ch12: add a comment to indicate future work X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=87cd385fa5dad3a0e5d144e08670c7fdd85fe2ef;p=gcc.git [Ada] Sem_Ch12: add a comment to indicate future work 2019-09-19 Eric Botcazou gcc/ada/ * sem_ch12.adb (Check_Private_View): Add a comment to indicate future work. From-SVN: r275955 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index ff666826090..8a872741945 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2019-09-19 Eric Botcazou + + * sem_ch12.adb (Check_Private_View): Add a comment to indicate + future work. + 2019-09-19 Eric Botcazou * exp_aggr.adb (Has_Mutable_Components): Look at the underlying diff --git a/gcc/ada/sem_ch12.adb b/gcc/ada/sem_ch12.adb index 280c9258e18..4e74f9a6e9f 100644 --- a/gcc/ada/sem_ch12.adb +++ b/gcc/ada/sem_ch12.adb @@ -7478,6 +7478,11 @@ package body Sem_Ch12 is end loop; end; + -- The following case does not test Has_Private_View (N) so it may + -- end up switching views when they are not supposed to be switched. + -- This might be in keeping with Set_Global_Type setting the flag + -- for an array type even if it is not private ??? + elsif Is_Private_Type (T) and then Present (Full_View (T)) and then Is_Array_Type (Full_View (T))