diff options
Diffstat (limited to 'gcc/ada/sem_ch6.adb')
-rw-r--r-- | gcc/ada/sem_ch6.adb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ada/sem_ch6.adb b/gcc/ada/sem_ch6.adb index 986a1e8..537aa02 100644 --- a/gcc/ada/sem_ch6.adb +++ b/gcc/ada/sem_ch6.adb @@ -4527,6 +4527,14 @@ package body Sem_Ch6 is elsif Ekind (T) = E_Incomplete_Type and then From_With_Type (T) then Set_Has_Delayed_Freeze (Designator); + + -- AI05-0151 : incomplete types can now appear in the profile of a + -- subprogram or entry declaration. + + elsif Ekind (T) = E_Incomplete_Type + and then Ada_Version >= Ada_2012 + then + Set_Has_Delayed_Freeze (Designator); end if; end Possible_Freeze; |