diff options
author | Gary Dismukes <dismukes@adacore.com> | 2023-12-02 00:11:31 +0000 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-12-19 15:27:50 +0100 |
commit | aad881afce9edba1ccb16305c2796987c6af2543 (patch) | |
tree | 12080c6d12c8a5cccc8ae688a1f64a7fd01f0f71 /gcc/btfout.cc | |
parent | 8ce9496f0e18f2cd1a0b86d18c534bd04fbacc31 (diff) | |
download | gcc-aad881afce9edba1ccb16305c2796987c6af2543.zip gcc-aad881afce9edba1ccb16305c2796987c6af2543.tar.gz gcc-aad881afce9edba1ccb16305c2796987c6af2543.tar.bz2 |
ada: Missing error on positional container aggregates for types with Add_Named
The compiler fails to reject a container aggregate written using positional
notation when the container type specifies an Add_Named operation in its
Aggregate aspect. Container aggregates for such types must be written using
named associations. The compiler ignores the positional associations and
produces an empty aggregate object. An error check is added to catch such
illegal container aggregates.
gcc/ada/
* sem_aggr.adb (Resolve_Container_Aggregate): In the Add_Named
case, issue an error if the container aggregate is written as a
positional aggregate, since such an aggregate must have named
associations.
Diffstat (limited to 'gcc/btfout.cc')
0 files changed, 0 insertions, 0 deletions