[PATCH] ada: more precise error message
Robert Dewar
dewar@adacore.com
Sat Oct 10 14:49:00 GMT 2009
Samuel Tardieu wrote:
> This change has been suggested by Ludovic Brenta.
>
> Ok for trunk?
Yes, this change is fine!
>
> gcc/ada
> * sem_eval.adb: Give a more precise error message.
>
> ---
> gcc/ada/sem_eval.adb | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/gcc/ada/sem_eval.adb b/gcc/ada/sem_eval.adb
> index 18853d7..6e06e83 100644
> --- a/gcc/ada/sem_eval.adb
> +++ b/gcc/ada/sem_eval.adb
> @@ -5018,7 +5018,7 @@ package body Sem_Eval is
>
> if Attribute_Name (N) = Name_Size then
> Error_Msg_N
> - ("size attribute is only static for scalar type " &
> + ("size attribute is only static for static scalar type " &
> "(RM 4.9(7,8))", N);
>
> -- Flag array cases
More information about the Gcc-patches
mailing list