This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Ada] Better casing of identifiers in some error messages


This is a minor patch that improves the casing of identifiers
in a few error messages by using & insertions instead of %

The following shows this improvement in action:

     1. with System; use System;
     2. procedure Errname (X : Address) is
     3.    function Ident (Y : Address) return Address
     4.    is begin return Y; end;
     5.
     6.    AR : String := "HELLO";
     7.    ARA : constant Address := Ident (X);
     8.    for AR'Address use ARA;
                              |
        >>> invalid address clause for initialized object "AR"
        >>> "ARA" must be defined before "AR" (RM 13.1(22))

     9.
    10. begin
    11.    null;
    12. end;

Before the patch, the last line of this message said
Ara and Ar instead of ARA and AR.

Tested on x86_64-pc-linux-gnu, committed on trunk

2009-05-06  Robert Dewar  <dewar@adacore.com>

	* sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
	improvements

Attachment: difs
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]