sem_ch4.adb (Complete_Object_Operation): After analyzing the rewritten call...
commit438ff97c274020cf44c92a47593ebceffa6c06cf
authorEd Schonberg <schonberg@adacore.com>
Mon, 14 Jun 2010 08:14:10 +0000 (14 08:14 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 14 Jun 2010 08:14:10 +0000 (14 10:14 +0200)
treef17524d1633d55b13a0f7439b81e0e068aa18d48
parent71158d7e6d3ce21ac0ef3b96a516073870178631
sem_ch4.adb (Complete_Object_Operation): After analyzing the rewritten call...

2010-06-14  Ed Schonberg  <schonberg@adacore.com>

* sem_ch4.adb (Complete_Object_Operation): After analyzing the
rewritten call, preserve the resulting type to prevent spurious errors,
when the call is implicitly dereferenced in the context of an in-out
actual.

* checks.adb (Apply_Discriminant_Check): If the target of the
assignment is a renaming of a heap object, create constrained type for
it to apply check.

From-SVN: r160709
gcc/ada/ChangeLog
gcc/ada/checks.adb
gcc/ada/sem_ch4.adb