diff options
Diffstat (limited to 'gcc/ada/sem_util.adb')
-rw-r--r-- | gcc/ada/sem_util.adb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb index 44550392d9a..6183c0cc1a1 100644 --- a/gcc/ada/sem_util.adb +++ b/gcc/ada/sem_util.adb @@ -6371,6 +6371,9 @@ package body Sem_Util is Error_Msg_N ( "operator of the type is not directly visible!", Expr); + elsif Ekind (Found_Type) = E_Void then + Error_Msg_NE ("found premature usage of}!", Expr, Found_Type); + else Error_Msg_NE ("found}!", Expr, Found_Type); end if; |