]> git.ipfire.org Git - thirdparty/gcc.git/commit
exp_ch5.adb (Get_Default_Iterator): For a derived type...
authorEd Schonberg <schonberg@adacore.com>
Fri, 6 Jan 2017 11:03:36 +0000 (11:03 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 6 Jan 2017 11:03:36 +0000 (12:03 +0100)
commit6eca51ce090586d67fe01897c848bb224142549f
treeb340effce88373fff5af0e2b3edde9115f90af08
parent6413509bd47c3d3c2c9160d5d13a5d4f40903456
exp_ch5.adb (Get_Default_Iterator): For a derived type...

2017-01-06  Ed Schonberg  <schonberg@adacore.com>

* exp_ch5.adb (Get_Default_Iterator): For a derived type, the
alias of the inherited op is the parent iterator, no need to
examine dispatch table positions which might not be established
yet if type is not frozen.
* sem_disp.adb (Check_Controlling_Formals): The formal of a
predicate function may be a subtype of a tagged type.
* sem_ch3.adb (Complete_Private_Subtype): Adjust inheritance
of representation items for the completion of a type extension
where a predicate applies to the partial view.
* checks.ads, checks.adb (Apply_Predicate_Check): Add optional
parameter that designates function whose actual receives a
predicate check, to improve warning message when the check will
lead to infinite recursion.
* sem_res.adb (Resolve_Actuals): Pass additional parameter to
Apply_Predicate_Check.

From-SVN: r244132
gcc/ada/ChangeLog
gcc/ada/checks.adb
gcc/ada/checks.ads
gcc/ada/exp_ch5.adb
gcc/ada/sem_ch3.adb
gcc/ada/sem_disp.adb
gcc/ada/sem_res.adb