ASCII is special cased but this wasn't taking into account all cases
such as Standard.ASCII.
gcc/ada/
* snames.ads-tmpl (Name_ASCII): New.
* style.adb (Check_Identifier): Fix handling of ASCII.
-- Some miscellaneous names used for error detection/recovery
+ Name_ASCII : constant Name_Id := N + $;
Name_Const : constant Name_Id := N + $;
Name_Error : constant Name_Id := N + $;
Name_False : constant Name_Id := N + $;
with Opt; use Opt;
with Sinfo; use Sinfo;
with Sinfo.Nodes; use Sinfo.Nodes;
-with Sinfo.Utils; use Sinfo.Utils;
with Sinput; use Sinput;
-with Stand; use Stand;
+with Snames; use Snames;
with Stylesw; use Stylesw;
package body Style is
else
-- ASCII is all upper case
- if Entity (Ref) = Standard_ASCII then
+ if Chars (Ref) = Name_ASCII then
Cas := All_Upper_Case;
-- Special handling for names in package ASCII