OSDN Git Service

2010-06-14 Ed Schonberg <schonberg@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Jun 2010 08:14:10 +0000 (08:14 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Jun 2010 08:14:10 +0000 (08:14 +0000)
commit7be5088af5a11f5f4793edebaa0a2f748e61c839
treef17524d1633d55b13a0f7439b81e0e068aa18d48
parent6c04591aa86d75c33476eff9c597f366dae616f5
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160709 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/checks.adb
gcc/ada/sem_ch4.adb