[Ada] Fix expansion of aggregates components rewritten to raise statements
authorEd Schonberg <schonberg@adacore.com>
Tue, 17 Jul 2018 08:12:14 +0000 (08:12 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Tue, 17 Jul 2018 08:12:14 +0000 (08:12 +0000)
commitf4c2607769d476af4d340edea2e7c2f15266c3a1
tree1c904805e5de917cce24b6de9b583c6345e3c220
parente164710e27346c3a9450416afaea2190c1055a95
[Ada] Fix expansion of aggregates components rewritten to raise statements

2018-07-17  Ed Schonberg  <schonberg@adacore.com>

gcc/ada/

* exp_aggr.adb (Component_OK_For_Backend): If an array component of the
enclosing record has a bound that is out of range (and that has been
rewritten as a raise statement) the aggregate is not OK for any back
end, and should be expanded into individual assignments.

From-SVN: r262800
gcc/ada/ChangeLog
gcc/ada/exp_aggr.adb