aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_ch4.adb
diff options
context:
space:
mode:
authorRobert Dewar <dewar@adacore.com>2011-08-05 15:10:50 +0000
committerArnaud Charlet <charlet@gcc.gnu.org>2011-08-05 17:10:50 +0200
commitdedac3eb7331f441f24b192fa0d9d1e1162f57ba (patch)
treedbf7d77eccd6d83effd5cc41a4d0d61e74a759c3 /gcc/ada/sem_ch4.adb
parent7c62a85a8dcec50e474c02525c5f165ad30cf2d9 (diff)
downloadgcc-dedac3eb7331f441f24b192fa0d9d1e1162f57ba.zip
gcc-dedac3eb7331f441f24b192fa0d9d1e1162f57ba.tar.gz
gcc-dedac3eb7331f441f24b192fa0d9d1e1162f57ba.tar.bz2
par_sco.adb, [...]: Minor reformatting.
2011-08-05 Robert Dewar <dewar@adacore.com> * par_sco.adb, sem_ch3.adb, scos.ads, a-iteint.ads, sem_ch12.adb, a-cimutr.adb, a-cimutr.ads, sem_util.ads, sem_res.adb, a-fihema.adb, sem_ch4.adb, lib-xref-alfa.adb, exp_disp.adb, a-comutr.adb, a-comutr.ads, lib-xref.adb: Minor reformatting. 2011-08-05 Robert Dewar <dewar@adacore.com> * sem_ch11.adb (Analyze_Raise_Statement): Kill assignment to formal warning if there is an exception handler present. From-SVN: r177451
Diffstat (limited to 'gcc/ada/sem_ch4.adb')
-rw-r--r--gcc/ada/sem_ch4.adb7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/ada/sem_ch4.adb b/gcc/ada/sem_ch4.adb
index 3d7b48f..21c7a89 100644
--- a/gcc/ada/sem_ch4.adb
+++ b/gcc/ada/sem_ch4.adb
@@ -6303,26 +6303,27 @@ package body Sem_Ch4 is
Func_Name := Empty;
Is_Var := False;
- Ritem := First_Rep_Item (Etype (Prefix));
+ Ritem := First_Rep_Item (Etype (Prefix));
while Present (Ritem) loop
if Nkind (Ritem) = N_Aspect_Specification then
-- Prefer Variable_Indexing, but will settle for Constant.
if Get_Aspect_Id (Chars (Identifier (Ritem))) =
- Aspect_Constant_Indexing
+ Aspect_Constant_Indexing
then
Func_Name := Expression (Ritem);
elsif Get_Aspect_Id (Chars (Identifier (Ritem))) =
- Aspect_Variable_Indexing
+ Aspect_Variable_Indexing
then
Func_Name := Expression (Ritem);
Is_Var := True;
exit;
end if;
end if;
+
Next_Rep_Item (Ritem);
end loop;