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] Do not consider 'Mod as a keyword


Tested on i686-linux, committed on mainline.

This is a simple fix for an oversight. There are a number of keywords
that can be used as attribute names (ACCESS, DELTA, DIGITS, RANGE) and
we suppress keyword style checking for these when used as attribute
names. Ada 2005 adds MOD to this list.

The following should compile without a warning with -gnat05 -gnatyk
switches enabled:

package Mod_Attr is

    type Modular is mod 2**32;
    X: Modular := Modular'Mod(123);

end Mod_Attr;

2005-07-04  Robert Dewar  <dewar@adacore.com>

	* scng.adb: Do not consider Mod used as an attribute to be a keyword

Attachment: difs.15
Description: Text document


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