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] improve error message when identifier starts with a digit


Tested on i686-linux, committed on trunk.

This patch improves the error message for the case where an
identifier starts with a digit.

Here is an example

Compiling: p2.adb (source file time stamp: 2006-10-31 14:12:14)

     1. package body P2 is
     2.    procedure Init is
     3.    begin
     4.       0utputs := 0;
              |
        >>> identifier may not start with digit
        >>> "0utputs" is undefined

     5.    end Init;
     6. end P2;

Compiling: p2.ads (source file time stamp: 2006-10-31 14:12:24)

     1. package P2
     2. is
     3.    Outputs : Integer;
     4.    procedure Init;
     5. end P2;

2006-10-31  Robert Dewar  <dewar@adacore.com>

	* scng.adb (Scan, case of numeric literal): Better msg for identifier
	starting with a digit.

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]