aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/decl.cc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2023-04-12 19:49:05 +0200
committerMarc Poulhiès <poulhies@adacore.com>2023-05-30 09:12:17 +0200
commitc8df233586990a903afe3b017d24541bc4689f08 (patch)
treea0a3b3517dd2ea3b00d261fe6832f337722d5d8f /gcc/ada/gcc-interface/decl.cc
parentcab8bb2b3b9ab5b83ac054b088ffd925a0668bdb (diff)
downloadgcc-c8df233586990a903afe3b017d24541bc4689f08.zip
gcc-c8df233586990a903afe3b017d24541bc4689f08.tar.gz
gcc-c8df233586990a903afe3b017d24541bc4689f08.tar.bz2
ada: Fix wrong expansion of array aggregate with noncontiguous choices
This extends an earlier fix done for the others choice of an array aggregate to all the choices of the aggregate, since the same sharing issue may happen when the choices are not contiguous. gcc/ada/ * exp_aggr.adb (Build_Array_Aggr_Code.Get_Assoc_Expr): Duplicate the expression here instead of... (Build_Array_Aggr_Code): ...here.
Diffstat (limited to 'gcc/ada/gcc-interface/decl.cc')
0 files changed, 0 insertions, 0 deletions