ada: Fix wrong expansion of limited extension aggregate
commitae3fd5e8a75bf7cf18a98b0d0545ade976c1ec05
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 21 Apr 2023 16:30:48 +0000 (21 18:30 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 13 Jun 2023 07:31:44 +0000 (13 09:31 +0200)
treec21cbfe8cf69065c64b6633cf810df1a46ca0510
parent5c266974094ec997a0e83fc763fa4a6ff4b96005
ada: Fix wrong expansion of limited extension aggregate

This happens when the ancestor part is itself an aggregate: in this case,
the tag of the extension aggregate is wrongly set to that of the ancestor.

gcc/ada/

* exp_aggr.adb (Build_Record_Aggr_Code): In the case of an extension
aggregate of a limited type whose ancestor part is an aggregate, do
not skip the final code assigning the tag of the extension.
gcc/ada/exp_aggr.adb