diff options
Diffstat (limited to 'gcc/ada/sem_ch3.adb')
-rw-r--r-- | gcc/ada/sem_ch3.adb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ada/sem_ch3.adb b/gcc/ada/sem_ch3.adb index 6559c8f..133178f 100644 --- a/gcc/ada/sem_ch3.adb +++ b/gcc/ada/sem_ch3.adb @@ -3479,6 +3479,14 @@ package body Sem_Ch3 is then Check_Nonoverridable_Aspects; end if; + + -- Check for tagged type declaration at library level + + if Is_Tagged_Type (T) + and then not Is_Library_Level_Entity (T) + then + Check_Restriction (No_Local_Tagged_Types, T); + end if; end Analyze_Full_Type_Declaration; ---------------------------------- |