exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent and the derived...
authorHristian Kirtchev <kirtchev@adacore.com>
Tue, 20 May 2008 12:46:06 +0000 (14:46 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 20 May 2008 12:46:06 +0000 (14:46 +0200)
commitd4817e3fbfe0e0268aeb96a7ce845e5e7fb3a6a6
tree68995467c8c5e817aecaf2aea92a7acac83fcf0d
parent4f469be30bf03ea36b23f390b7446f499cb5be5e
exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent and the derived type are of the same kind.

2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>

* exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
and the derived type are of the same kind.
(Expand_Call): Generate type conversions for actuals of
record or array types when the parent and the derived types differ in
size and/or packed status.

From-SVN: r135624
gcc/ada/exp_ch6.adb