aboutsummaryrefslogtreecommitdiff
path: root/gcc/genmodes.cc
diff options
context:
space:
mode:
authorJavier Miranda <miranda@adacore.com>2023-03-12 12:32:34 +0000
committerMarc Poulhiès <poulhies@adacore.com>2023-05-25 09:44:19 +0200
commitf7f8e290a11a2d1ab0eefa5a87d4d56f0146f9d4 (patch)
treec17991601bc9bf843a00aef1a9d5ca36d93c728d /gcc/genmodes.cc
parentf81245b46472746e03b1b86191969b822ed03943 (diff)
downloadgcc-f7f8e290a11a2d1ab0eefa5a87d4d56f0146f9d4.zip
gcc-f7f8e290a11a2d1ab0eefa5a87d4d56f0146f9d4.tar.gz
gcc-f7f8e290a11a2d1ab0eefa5a87d4d56f0146f9d4.tar.bz2
ada: Crash on empty aggregate using the Ada 2022 notation
The compiler crashes processing an empty aggregate initializing a component of a discriminated record type using the Ada 2022 notation (that is, []). gcc/ada/ * exp_aggr.adb (Build_Record_Aggr_Code): Protect access to aggregate components when the aggregate is empty.
Diffstat (limited to 'gcc/genmodes.cc')
0 files changed, 0 insertions, 0 deletions