sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is given a box assoc...
authorEd Schonberg <schonberg@adacore.com>
Mon, 10 Sep 2007 12:48:54 +0000 (14:48 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 10 Sep 2007 12:48:54 +0000 (14:48 +0200)
commit157a9bf572d6dbbf72ad33d1cc70ffb07078bb7a
treef3bb77f4c24f0e40dc9005d043e77d31d2cce213
parent10583694809011467d2b4578a5e263608d7e4dc3
sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is given a box association...

2007-09-10  Ed Schonberg  <schonberg@adacore.com>

* sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
given a box association, the type of the component is discriminated,
and the value of the discriminant is the discriminant of the enclosing
type, retrieve its value from the aggregate itself, where it must have
been supplied.

* sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
to remove other spurious ambiguities on arithmetic operations involving
literals and addresses, on systems where Address is a visible integer
type, when the operator is called in functional notation.
(Try_Primitive_Operation): Within an instance, a call in prefixed form
is legal when the types match, even if the operation is currently
hidden.

From-SVN: r128337
gcc/ada/sem_aggr.adb
gcc/ada/sem_ch4.adb