ada: Fix expanding container aggregates
commit765fc22ca5dbba94198e555ebcebb1944cf24731
authorViljar Indus <indus@adacore.com>
Tue, 6 Jun 2023 11:55:04 +0000 (6 14:55 +0300)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 27 Jun 2023 12:05:49 +0000 (27 14:05 +0200)
tree44b197c519b895f516ffc7a3d012883e49fd5d55
parent3c52dff792878306515056ecd94c8aa909f388fb
ada: Fix expanding container aggregates

Ensure that that container aggregate expressions are expanded as
such and not as records even if the type of the expression is a
record.

gcc/ada/

* exp_aggr.adb (Expand_N_Aggregate): Ensure that container
aggregate expressions do not get expanded as records but instead
as container aggregates.
gcc/ada/exp_aggr.adb