summaryrefslogtreecommitdiff
path: root/gcc/ada/sem_attr.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2016-04-19 13:10:35 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2016-04-19 13:10:35 +0000
commit15fca30810c3547fc77527f706419317379ecf5f (patch)
tree2d79230ef6305475d4443fa77a5b880a0db98247 /gcc/ada/sem_attr.adb
parent4dc3174c98bd6006894632c05bed35d6dec23be7 (diff)
downloadgcc-15fca30810c3547fc77527f706419317379ecf5f.tar.gz
2016-04-19 Hristian Kirtchev <kirtchev@adacore.com>
* checks.adb, sem_util.adb, sem_res.adb, sem_attr.adb: Minor reformatting. 2016-04-19 Ed Schonberg <schonberg@adacore.com> * freeze.adb (Freeze_Profile): Refine predicate that checks whether a function that returns a limited view is declared in another unit and cannot be frozen at this point. 2016-04-19 Ed Schonberg <schonberg@adacore.com> * exp_aggr.adb (Component_Count): Handle properly superflat arrays, i.e. empty arrays where Hi < Lo - 1, to ensure that the return value of the function is Natural, rather than leaving the handling of such arrays to the caller of this function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235200 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/sem_attr.adb')
-rw-r--r--gcc/ada/sem_attr.adb5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/ada/sem_attr.adb b/gcc/ada/sem_attr.adb
index fa44c1d96d6..66c6432dddf 100644
--- a/gcc/ada/sem_attr.adb
+++ b/gcc/ada/sem_attr.adb
@@ -10094,11 +10094,10 @@ package body Sem_Attr is
Freeze_Before (N, Entity (P));
end if;
- -- If it is a type, there is nothing to resolve.
- -- If it is an object, complete its resolution.
+ -- If it is a type, there is nothing to resolve. If it is an
+ -- object, complete its resolution.
elsif Is_Overloadable (Entity (P)) then
-
if not In_Spec_Expression then
Freeze_Before (N, Entity (P));
end if;